[gnome-shell/wip/carlosg/osk-emoji-and-keypad: 7/14] keyboard: Fix JS warning
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/wip/carlosg/osk-emoji-and-keypad: 7/14] keyboard: Fix JS warning
- Date: Tue, 5 Feb 2019 15:34:35 +0000 (UTC)
commit 545d49c70d0491ed6ccd4f020d8fbb7a7677ba72
Author: Carlos Garnacho <carlosg gnome org>
Date: Mon Jan 21 21:40:10 2019 +0100
keyboard: Fix JS warning
The solution is pointed out by the warning itself.
js/ui/keyboard.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/js/ui/keyboard.js b/js/ui/keyboard.js
index 6ecef255c..cbfdb0914 100644
--- a/js/ui/keyboard.js
+++ b/js/ui/keyboard.js
@@ -278,7 +278,7 @@ var Key = class Key {
}
_getKeyval(key) {
- let unicode = String.charCodeAt(key, 0);
+ let unicode = key.charCodeAt(0);
return Clutter.unicode_to_keysym(unicode);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]