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

@ -242,7 +242,7 @@ const RunDialog = new Lang.Class({
let symbol = e.get_key_symbol();
if (symbol == Clutter.Return || symbol == Clutter.KP_Enter) {
this.popModal();
if (Shell.get_event_state(e) & Clutter.ModifierType.CONTROL_MASK)
if (e.get_state() & Clutter.ModifierType.CONTROL_MASK)
this._run(o.get_text(), true);
else
this._run(o.get_text(), false);