From 7a0b4a56f9fb63f85d14be1913e3f4384ee8d32c Mon Sep 17 00:00:00 2001 From: Hakim El Hattab Date: Mon, 4 Dec 2017 13:57:19 +0100 Subject: [PATCH] prevent cmd+r in notes window since reloading breaks the view #1958 --- plugin/notes/notes.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugin/notes/notes.html b/plugin/notes/notes.html index 9922a296..5b75d736 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 ] }), '*' ); } );