[gnome-shell] inputMethod: Also forward TERMINAL input purpose



commit dfcab5a2b17fbdc6cbc00f35a167aef16352ed7c
Author: Jonas Ã…dahl <jadahl gmail com>
Date:   Fri Oct 14 21:41:00 2022 +0200

    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>

 js/misc/inputMethod.js | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/js/misc/inputMethod.js b/js/misc/inputMethod.js
index 7bf6646d80..cb70f93f7a 100644
--- a/js/misc/inputMethod.js
+++ b/js/misc/inputMethod.js
@@ -273,6 +273,9 @@ var InputMethod = GObject.registerClass({
             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._setTerminalMode(
             purpose === Clutter.InputContentPurpose.TERMINAL);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]