[Libreoffice-commits] online.git: loleaflet/src

Tor Lillqvist (via logerrit) logerrit at kemper.freedesktop.org
Fri Dec 13 15:47:38 UTC 2019


 loleaflet/src/map/handler/Map.Keyboard.js |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

New commits:
commit 31730de94731ad1aa8e55633129e80aded63ed62
Author:     Tor Lillqvist <tml at collabora.com>
AuthorDate: Fri Dec 13 16:51:05 2019 +0200
Commit:     Tor Lillqvist <tml at collabora.com>
CommitDate: Fri Dec 13 16:47:20 2019 +0100

    Improve comments what some keyCode values actually mean
    
    67, 88, 99, and 120 are simply the code points of the 'C', 'X', 'c',
    and 'x' letters in decimal.
    
    Change-Id: I3428bb44a3d41b3ff774ac963ea85c3a2e11a4b6
    Reviewed-on: https://gerrit.libreoffice.org/85123
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice at gmail.com>
    Reviewed-by: Tor Lillqvist <tml at collabora.com>

diff --git a/loleaflet/src/map/handler/Map.Keyboard.js b/loleaflet/src/map/handler/Map.Keyboard.js
index c5f7fc4f6..4c9e8e9b2 100644
--- a/loleaflet/src/map/handler/Map.Keyboard.js
+++ b/loleaflet/src/map/handler/Map.Keyboard.js
@@ -488,10 +488,10 @@ L.Map.Keyboard = L.Handler.extend({
 				return true;
 			}
 			return false;
-		case 67: // c
-		case 88: // x
-		case 99: // c (Safari)
-		case 120: // x (Safari)
+		case 67: // 'C'
+		case 88: // 'X'
+		case 99: // 'c'
+		case 120: // 'x'
 		case 91: // Left Cmd (Safari)
 		case 93: // Right Cmd (Safari)
 			// we prepare for a copy or cut event


More information about the Libreoffice-commits mailing list