prevent cmd+r in notes window since reloading breaks the view #1958

main
Hakim El Hattab 5 years ago
parent edc9c0a8fd
commit 7a0b4a56f9
  1. 3
      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 ] }), '*' );
} );

Loading…
Cancel
Save