fix: keyboard getting doubled if switching entry via the input switch icon
got mistakenly removed in previous commit 585f477e51
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user