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

This commit is contained in:
Hakim El Hattab 2017-12-04 13:57:19 +01:00
parent edc9c0a8fd
commit 7a0b4a56f9

View file

@ -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 ] }), '*' );
} );