fix: keyboard getting doubled if switching entry via the input switch icon

got mistakenly removed in previous commit 585f477e51
This commit is contained in:
Alfredo Monclus
2024-09-21 05:27:57 -03:00
parent 585f477e51
commit c20d0a2f84

View File

@@ -123,6 +123,8 @@ class Panel(ScreenPanel):
)
def on_icon_pressed(self, entry, icon_pos, event):
entry.grab_focus()
self._screen.remove_keyboard()
if entry.get_input_purpose() == Gtk.InputPurpose.ALPHA:
if entry.get_input_hints() in (Gtk.InputHints.NONE, Gtk.InputHints.EMOJI):
entry.set_input_purpose(Gtk.InputPurpose.NUMBER)