[Libreoffice-commits] online.git: loleaflet/src
Michael Meeks (via logerrit)
logerrit at kemper.freedesktop.org
Fri Nov 15 21:43:53 UTC 2019
loleaflet/src/map/handler/Map.Keyboard.js | 4 ----
1 file changed, 4 deletions(-)
New commits:
commit 1ab617a3a2c20a50b9ec022c31a3d4b908fbd0fb
Author: Michael Meeks <michael.meeks at collabora.com>
AuthorDate: Fri Nov 15 21:42:58 2019 +0000
Commit: Michael Meeks <michael.meeks at collabora.com>
CommitDate: Fri Nov 15 21:42:58 2019 +0000
Remove unused _keyHandled
Change-Id: I3bd1e05e33ec976ff44067a8a19b699b523c52a2
diff --git a/loleaflet/src/map/handler/Map.Keyboard.js b/loleaflet/src/map/handler/Map.Keyboard.js
index d4bf89185..c5f7fc4f6 100644
--- a/loleaflet/src/map/handler/Map.Keyboard.js
+++ b/loleaflet/src/map/handler/Map.Keyboard.js
@@ -262,7 +262,6 @@ L.Map.Keyboard = L.Handler.extend({
var alt = ev.altKey ? this.keyModifier.alt : 0;
var cmd = ev.metaKey ? this.keyModifier.ctrl : 0;
var location = ev.location;
- this._keyHandled = this._keyHandled || false;
this.modifier = shift | ctrl | alt | cmd;
// On Windows, pressing AltGr = Alt + Ctrl
@@ -331,7 +330,6 @@ L.Map.Keyboard = L.Handler.extend({
// key ignored
}
else if (ev.type === 'keydown') {
- this._keyHandled = false;
// console.log(e);
if (this.handleOnKeyDownKeys[keyCode] && charCode === 0) {
keyEventFn('input', charCode, unoKeyCode);
@@ -356,11 +354,9 @@ L.Map.Keyboard = L.Handler.extend({
}
keyEventFn('input', charCode, unoKeyCode);
- this._keyHandled = true;
}
else if (ev.type === 'keyup') {
keyEventFn('up', charCode, unoKeyCode);
- this._keyHandled = true;
}
if (keyCode === 9) {
// tab would change focus to other DOM elements
More information about the Libreoffice-commits
mailing list