[gnome-shell] inputMethod: Also forward TERMINAL input purpose
- From: Marge Bot <marge-bot src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] inputMethod: Also forward TERMINAL input purpose
- Date: Fri, 14 Oct 2022 21:59:01 +0000 (UTC)
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]