Exclude Apple keyboard Meta key from the Pause shortcut
This commit is contained in:
parent
4c402f6af4
commit
886e231091
|
@ -379,7 +379,7 @@ $(function() {
|
|||
// Allow folks to stop the ajax page updates with the pause/break key
|
||||
$(document).keydown(function(event) {
|
||||
// Pause/Break or Ctrl + Space
|
||||
if (event.which === 19 || (!event.shiftKey && !event.altKey && event.ctrlKey && event.which === 32)) {
|
||||
if (event.which === 19 || (!event.metaKey && !event.shiftKey && !event.altKey && event.ctrlKey && event.which === 32)) {
|
||||
event.preventDefault();
|
||||
if (stopped === false) {
|
||||
stopped = true;
|
||||
|
|
Loading…
Reference in New Issue
Block a user