Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhancement: Shortcuts should only be shortcut listings and no option for search #1734

Merged
merged 10 commits into from
Apr 5, 2023
11 changes: 11 additions & 0 deletions mslib/msui/msui.py
Original file line number Diff line number Diff line change
Expand Up @@ -1000,7 +1000,18 @@ def show_shortcuts(self, search_mode=False):
self.shortcuts_dlg.reset_highlight()
self.shortcuts_dlg.fill_list()
self.shortcuts_dlg.show()

self.shortcuts_dlg.cbAdvanced.setHidden(True)
self.shortcuts_dlg.cbHighlight.setHidden(True)
self.shortcuts_dlg.cbAdvanced.setCheckState(0)
self.shortcuts_dlg.cbHighlight.setCheckState(0)
self.shortcuts_dlg.leShortcutFilter.setText("")
self.shortcuts_dlg.setWindowTitle("Shortcuts")

if search_mode:
self.shortcuts_dlg.setWindowTitle("Search")
self.shortcuts_dlg.cbAdvanced.setHidden(False)
self.shortcuts_dlg.cbHighlight.setHidden(False)
self.shortcuts_dlg.cbDisplayType.setCurrentIndex(1)
self.shortcuts_dlg.leShortcutFilter.setText("")
self.shortcuts_dlg.cbAdvanced.setCheckState(2)
Expand Down