Focus message input field with tab

This commit is contained in:
Mark Qvist 2024-05-06 16:13:44 +02:00
parent 2da2fc26e7
commit 7fb5dcd362
1 changed files with 9 additions and 0 deletions

View File

@ -873,6 +873,15 @@ class SidebandApp(MDApp):
c_index = keycode-29
self.conversation_index_action(c_index)
if self.root.ids.screen_manager.current == "messages_screen":
if keycode == 43:
if not self.messages_view.ids.message_text.focus:
self.messages_view.ids.message_text.write_tab = False
self.messages_view.ids.message_text.focus = True
def tab_job(delta):
self.messages_view.ids.message_text.write_tab = True
Clock.schedule_once(tab_job, 0.15)
if len(modifiers) > 0:
if modifiers[0] == "ctrl":
if text == "q":