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:
@@ -68,6 +68,8 @@ export default class Keyboard {
|
||||
|
||||
if (method) {
|
||||
method.call(this.ws_, argument);
|
||||
// Prevents Firefox key events.
|
||||
event.preventDefault();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -1816,6 +1816,8 @@ var Keyboard = function () {
|
||||
|
||||
if (method) {
|
||||
method.call(this.ws_, argument);
|
||||
// Prevents Firefox key events.
|
||||
event.preventDefault();
|
||||
}
|
||||
}
|
||||
}]);
|
||||
|
2
static/js/webslides.min.js
vendored
2
static/js/webslides.min.js
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user