Remove the shell_get_event_state() wrapper

The bug that this wrapper was working around has been fixed for quite some
time: https://bugzilla.gnome.org/show_bug.cgi?id=650329.
This commit is contained in:
Rui Matos
2012-02-28 17:01:48 +01:00
parent 760da64a4c
commit aa5d352a06
9 changed files with 8 additions and 30 deletions

View File

@ -1140,7 +1140,7 @@ const LookingGlass = new Lang.Class({
// Handle key events which are relevant for all tabs of the LookingGlass
_globalKeyPressEvent : function(actor, event) {
let symbol = event.get_key_symbol();
let modifierState = Shell.get_event_state(event);
let modifierState = event.get_state();
if (symbol == Clutter.Escape) {
if (this._objInspector.actor.visible) {
this._objInspector.close();