diff --git a/js/ui/keyboard.js b/js/ui/keyboard.js index 7452feaac..866382e4f 100644 --- a/js/ui/keyboard.js +++ b/js/ui/keyboard.js @@ -327,7 +327,7 @@ var Key = GObject.registerClass({ } _getKeyval(key) { - let unicode = key.charCodeAt(0); + let unicode = key.length ? key.charCodeAt(0) : undefined; return Clutter.unicode_to_keysym(unicode); }