keyboard: Drop GDK API usage

Use the misnamed but equivalent Clutter function.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/317
This commit is contained in:
Carlos Garnacho 2018-11-26 13:39:57 +01:00
parent f4a64f77f2
commit b10606e884

View File

@ -2,7 +2,6 @@
const Atspi = imports.gi.Atspi;
const Clutter = imports.gi.Clutter;
const Gdk = imports.gi.Gdk;
const Gio = imports.gi.Gio;
const GLib = imports.gi.GLib;
const GObject = imports.gi.GObject;
@ -280,7 +279,7 @@ var Key = class Key {
_getKeyval(key) {
let unicode = String.charCodeAt(key, 0);
return Gdk.unicode_to_keyval(unicode);
return Clutter.unicode_to_keysym(unicode);
}
_press(key) {