From b43e3f4868d37b1682b4f3e28dfeeeb66b17817a Mon Sep 17 00:00:00 2001 From: pdxlocations Date: Wed, 18 Mar 2026 22:36:23 -0700 Subject: [PATCH] Fix ctrl / on mac terminal --- contact/localisations/en.ini | 2 +- contact/localisations/ru.ini | 2 +- contact/ui/contact_ui.py | 4 +++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/contact/localisations/en.ini b/contact/localisations/en.ini index bc970c9..9558210 100644 --- a/contact/localisations/en.ini +++ b/contact/localisations/en.ini @@ -77,7 +77,7 @@ help.node_info, "F5 = Full node info", "" help.archive_chat, "Ctrl+D = Archive chat / remove node", "" help.favorite, "Ctrl+F = Favorite", "" help.ignore, "Ctrl+G = Ignore", "" -help.search, "Ctrl+/ = Search", "" +help.search, "Ctrl+/ or / = Search", "" help.help, "Ctrl+K = Help", "" help.no_help, "No help available.", "" confirm.remove_from_nodedb, "Remove {name} from nodedb?", "" diff --git a/contact/localisations/ru.ini b/contact/localisations/ru.ini index 83f0584..a48a01d 100644 --- a/contact/localisations/ru.ini +++ b/contact/localisations/ru.ini @@ -77,7 +77,7 @@ help.node_info, "F5 = Полная информация об узле", "" help.archive_chat, "Ctrl+D = Архив чата / удалить узел", "" help.favorite, "Ctrl+F = Избранное", "" help.ignore, "Ctrl+G = Игнорировать", "" -help.search, "Ctrl+/ = Поиск", "" +help.search, "Ctrl+/ или / = Поиск", "" help.help, "Ctrl+K = Справка", "" help.no_help, "Нет справки.", "" confirm.remove_from_nodedb, "Удалить {name} из базы узлов?", "" diff --git a/contact/ui/contact_ui.py b/contact/ui/contact_ui.py index 3c006c8..17c1979 100644 --- a/contact/ui/contact_ui.py +++ b/contact/ui/contact_ui.py @@ -323,7 +323,9 @@ def main_ui(stdscr: curses.window) -> None: elif char == chr(4): # Ctrl + D to delete current channel or node handle_ctrl_d() - elif char == chr(31): # Ctrl + / to search + elif char == chr(31) or ( + char == "/" and not input_text and ui_state.current_window in (0, 2) + ): # Ctrl + / or / to search in channel/node lists handle_ctrl_fslash() elif char == chr(11): # Ctrl + K for Help