Skip to content

Commit

Permalink
Remove Enter as key for changing checkbox state
Browse files Browse the repository at this point in the history
Resolve issue #233.
  • Loading branch information
jongund authored and mcking65 committed Jan 30, 2017
1 parent 50a45b3 commit a9b91bd
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion examples/checkbox/checkbox-1/checkbox-1.html
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ <h2 id="kbd_label">Keyboard Support</h2>
</td>
</tr>
<tr>
<th><kbd>Space</kbd>, <br/> or <kbd>Enter</kbd></th>
<th><kbd>Space</kbd></th>
<td>
<ul>
<li>Toggle check checkbox between checked and unchecked.</li>
Expand Down
1 change: 0 additions & 1 deletion examples/checkbox/checkbox-1/js/checkbox.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ Checkbox.prototype.handleKeydown = function (event) {

switch (event.keyCode) {
case this.keyCode.SPACE:
case this.keyCode.RETURN:
this.toggleCheckbox();
flag = true;
break;
Expand Down
2 changes: 1 addition & 1 deletion examples/checkbox/checkbox-2/checkbox-2.html
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ <h2 id="kbd_label">Keyboard Support</h2>
</td>
</tr>
<tr>
<th><kbd>Space</kbd>, <br/> or <kbd>Enter</kbd></th>
<th><kbd>Space</kbd></th>
<td>
<ul>
<li>Toggle the checkbox between unchecked, mixed and checked.</li>
Expand Down
1 change: 0 additions & 1 deletion examples/checkbox/checkbox-2/js/checkboxMixed.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,6 @@ CheckboxMixed.prototype.handleKeydown = function (event) {

switch (event.keyCode) {
case this.keyCode.SPACE:
case this.keyCode.RETURN:
this.toggleCheckboxMixed();
flag = true;
break;
Expand Down

0 comments on commit a9b91bd

Please sign in to comment.