|
|
@ -137,6 +137,7 @@ $.fn.checkbox = function(parameters) { |
|
|
|
key = event.which, |
|
|
|
keyCode = { |
|
|
|
enter : 13, |
|
|
|
space : 32, |
|
|
|
escape : 27 |
|
|
|
} |
|
|
|
; |
|
|
@ -146,7 +147,7 @@ $.fn.checkbox = function(parameters) { |
|
|
|
.blur() |
|
|
|
; |
|
|
|
} |
|
|
|
if(!event.ctrlKey && key == keyCode.enter) { |
|
|
|
if(!event.ctrlKey && (key == keyCode.enter || key == keyCode.space)) { |
|
|
|
module.verbose('Enter key pressed, toggling checkbox'); |
|
|
|
module.toggle.call(this); |
|
|
|
event.preventDefault(); |
|
|
|