diff options
author | Jonas Ådahl <jadahl@gmail.com> | 2022-10-14 21:41:00 +0200 |
---|---|---|
committer | Florian Müllner <fmuellner@gnome.org> | 2022-10-22 17:20:35 +0200 |
commit | 9d347cb0bee2a86a5120742007938ccf8a98a8b8 (patch) | |
tree | 3784694dc1cdde12d025cb0fa12f732202c131e1 | |
parent | 9c6ce9aab03a81305019174db89bd2a728665426 (diff) | |
download | gnome-shell-9d347cb0bee2a86a5120742007938ccf8a98a8b8.tar.gz |
inputMethod: Also forward TERMINAL input purpose
It was added relatively recently (1.5.24), so check if it exists first.
Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/5958
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2511>
(cherry picked from commit dfcab5a2b17fbdc6cbc00f35a167aef16352ed7c)
-rw-r--r-- | js/misc/inputMethod.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/js/misc/inputMethod.js b/js/misc/inputMethod.js index 8c3cd61ae..01003ad2c 100644 --- a/js/misc/inputMethod.js +++ b/js/misc/inputMethod.js @@ -245,6 +245,9 @@ class InputMethod extends Clutter.InputMethod { ibusPurpose = IBus.InputPurpose.NAME; else if (purpose == Clutter.InputContentPurpose.PASSWORD) ibusPurpose = IBus.InputPurpose.PASSWORD; + else if (purpose === Clutter.InputContentPurpose.TERMINAL && + IBus.InputPurpose.TERMINAL) + ibusPurpose = IBus.InputPurpose.TERMINAL; this._purpose = ibusPurpose; if (this._context) |