1
0
mirror of https://github.com/webslides/WebSlides.git synced 2025-08-14 00:54:09 +02:00

Prevent Firefox keypress default event, it produced to scroll the page up/down

This commit is contained in:
Luis Sacristán
2017-08-05 01:48:01 +02:00
parent 18970a7b7b
commit 6699407c08
3 changed files with 5 additions and 1 deletions

View File

@@ -68,6 +68,8 @@ export default class Keyboard {
if (method) {
method.call(this.ws_, argument);
// Prevents Firefox key events.
event.preventDefault();
}
}
}

View File

@@ -1816,6 +1816,8 @@ var Keyboard = function () {
if (method) {
method.call(this.ws_, argument);
// Prevents Firefox key events.
event.preventDefault();
}
}
}]);

File diff suppressed because one or more lines are too long