[gnome-shell/wip/fmuellner/fix-find-as-you-type: 8/9] viewSelector: Don't duplicate find-as-you-type in captured-event
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/wip/fmuellner/fix-find-as-you-type: 8/9] viewSelector: Don't duplicate find-as-you-type in captured-event
- Date: Mon, 5 Mar 2018 19:13:39 +0000 (UTC)
commit b28e48094b336fd04b6410a671e67936478776a4
Author: Florian Müllner <fmuellner gnome org>
Date: Tue Feb 27 18:52:35 2018 +0100
viewSelector: Don't duplicate find-as-you-type in captured-event
Find-as-you type was never automatically handled by StIMText, but
by the existing stage key-press handler. The functionality broke
for a different reason, we will fix it after reverting the recent
captured-event changes.
This reverts commits bc4462cd0c1abb9 and e4ee944d8d6.
https://gitlab.gnome.org/GNOME/gnome-shell/issues/72
js/ui/viewSelector.js | 9 ---------
1 file changed, 9 deletions(-)
---
diff --git a/js/ui/viewSelector.js b/js/ui/viewSelector.js
index d06b4279d..fc03a2bb8 100644
--- a/js/ui/viewSelector.js
+++ b/js/ui/viewSelector.js
@@ -601,15 +601,6 @@ var ViewSelector = new Lang.Class({
// - cancel the search
this.reset();
}
- } else if (!(global.stage.get_key_focus() instanceof Clutter.Text) &&
- (event.type() == Clutter.EventType.KEY_PRESS ||
- event.type() == Clutter.EventType.KEY_RELEASE)) {
- let unichar = event.get_key_unicode();
-
- if (GLib.unichar_isprint(unichar)) {
- this._text.grab_key_focus();
- return this._text.event(event, false);
- }
}
return Clutter.EVENT_PROPAGATE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]