diff options
author | Hakim El Hattab | 2017-12-04 13:57:19 +0100 |
---|---|---|
committer | Hakim El Hattab | 2017-12-04 13:57:19 +0100 |
commit | 7a0b4a56f9fb63f85d14be1913e3f4384ee8d32c (patch) | |
tree | 7a824828c3d8c4209689f72b8ff6c3219d859a8d | |
parent | edc9c0a8fdb0b76dcb07fe9c8411debfcbb08ee9 (diff) |
prevent cmd+r in notes window since reloading breaks the view #1958
-rw-r--r-- | plugin/notes/notes.html | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugin/notes/notes.html b/plugin/notes/notes.html index 9922a29..5b75d73 100644 --- a/plugin/notes/notes.html +++ b/plugin/notes/notes.html @@ -434,8 +434,9 @@ function setupKeyboard() { document.addEventListener( 'keydown', function( event ) { - if (event.keyCode === 116) { + if( event.keyCode === 116 || ( event.metaKey && event.keyCode === 82 ) ) { event.preventDefault(); + return false; } currentSlide.contentWindow.postMessage( JSON.stringify({ method: 'triggerKey', args: [ event.keyCode ] }), '*' ); } ); |