[gnome-shell/wip/carlosg/osk-emoji-and-keypad: 32/40] keyboard: Fix JS warning
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/wip/carlosg/osk-emoji-and-keypad: 32/40] keyboard: Fix JS warning
- Date: Sat, 26 Jan 2019 13:14:47 +0000 (UTC)
commit a6bab806b85f2975690d4ef40bcc96982c206ec3
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 3f658b266..4da7d7dcd 100644
--- a/js/ui/keyboard.js
+++ b/js/ui/keyboard.js
@@ -279,7 +279,7 @@ var Key = class Key {
}
_getKeyval(key) {
- let unicode = String.charCodeAt(key, 0);
+ let unicode = String.prototype.charCodeAt(key, 0);
return Gdk.unicode_to_keyval(unicode);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]