mirror of
https://github.com/friendica/friendica
synced 2024-11-14 03:42:53 +00:00
Exclude Apple keyboard Meta key from the Pause shortcut
This commit is contained in:
parent
4c402f6af4
commit
886e231091
1 changed files with 2 additions and 2 deletions
|
@ -379,7 +379,7 @@ $(function() {
|
||||||
// Allow folks to stop the ajax page updates with the pause/break key
|
// Allow folks to stop the ajax page updates with the pause/break key
|
||||||
$(document).keydown(function(event) {
|
$(document).keydown(function(event) {
|
||||||
// Pause/Break or Ctrl + Space
|
// 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();
|
event.preventDefault();
|
||||||
if (stopped === false) {
|
if (stopped === false) {
|
||||||
stopped = true;
|
stopped = true;
|
||||||
|
|
Loading…
Reference in a new issue