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>
This commit is contained in:
parent
82f13c3a10
commit
dfcab5a2b1
@ -273,6 +273,9 @@ var InputMethod = GObject.registerClass({
|
|||||||
ibusPurpose = IBus.InputPurpose.NAME;
|
ibusPurpose = IBus.InputPurpose.NAME;
|
||||||
else if (purpose == Clutter.InputContentPurpose.PASSWORD)
|
else if (purpose == Clutter.InputContentPurpose.PASSWORD)
|
||||||
ibusPurpose = IBus.InputPurpose.PASSWORD;
|
ibusPurpose = IBus.InputPurpose.PASSWORD;
|
||||||
|
else if (purpose === Clutter.InputContentPurpose.TERMINAL &&
|
||||||
|
IBus.InputPurpose.TERMINAL)
|
||||||
|
ibusPurpose = IBus.InputPurpose.TERMINAL;
|
||||||
|
|
||||||
this._setTerminalMode(
|
this._setTerminalMode(
|
||||||
purpose === Clutter.InputContentPurpose.TERMINAL);
|
purpose === Clutter.InputContentPurpose.TERMINAL);
|
||||||
|
Loading…
Reference in New Issue
Block a user