[polari] entryArea: Enable type-ahead for shift-only key combos
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [polari] entryArea: Enable type-ahead for shift-only key combos
- Date: Fri, 19 Dec 2014 11:41:59 +0000 (UTC)
commit 6afb3e48672e283bb62af276c068ecb4572552e1
Author: Florian Müllner <fmuellner gnome org>
Date: Fri Nov 28 16:26:32 2014 +0000
entryArea: Enable type-ahead for shift-only key combos
We need to filter out key events with modifiers for type-ahead, so
that keyboard shortcuts don't unexpectedly move focus. However a
shift-only key combo is generally not a shortcut, but an upper
case letter, so do not filter those out.
https://bugzilla.gnome.org/show_bug.cgi?id=741756
src/entryArea.js | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/entryArea.js b/src/entryArea.js
index fccbc6f..6b00bb1 100644
--- a/src/entryArea.js
+++ b/src/entryArea.js
@@ -123,7 +123,7 @@ const EntryArea = new Lang.Class({
return Gdk.EVENT_PROPAGATE;
let [, state] = event.get_state();
- if (state != 0)
+ if (state != 0 && state != Gdk.ModifierType.SHIFT_MASK)
return Gdk.EVENT_PROPAGATE;
let activationKeys = [
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]