prevent cmd+r in notes window since reloading breaks the view #1958
This commit is contained in:
parent
edc9c0a8fd
commit
7a0b4a56f9
@ -434,8 +434,9 @@
|
|||||||
function setupKeyboard() {
|
function setupKeyboard() {
|
||||||
|
|
||||||
document.addEventListener( 'keydown', function( event ) {
|
document.addEventListener( 'keydown', function( event ) {
|
||||||
if (event.keyCode === 116) {
|
if( event.keyCode === 116 || ( event.metaKey && event.keyCode === 82 ) ) {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
currentSlide.contentWindow.postMessage( JSON.stringify({ method: 'triggerKey', args: [ event.keyCode ] }), '*' );
|
currentSlide.contentWindow.postMessage( JSON.stringify({ method: 'triggerKey', args: [ event.keyCode ] }), '*' );
|
||||||
} );
|
} );
|
||||||
|
Loading…
Reference in New Issue
Block a user