Add Ctrl+F as keyboard shortcut to focus search box
This commit is contained in:
parent
d128ffd133
commit
1e3a60e286
@ -310,6 +310,8 @@
|
||||
<addaction name="separator"/>
|
||||
<addaction name="action_showallvms"/>
|
||||
<addaction name="action_showinternalvms"/>
|
||||
<addaction name="separator"/>
|
||||
<addaction name="action_search"/>
|
||||
</widget>
|
||||
<widget class="QMenu" name="menu_vm">
|
||||
<property name="title">
|
||||
@ -914,6 +916,14 @@
|
||||
<string>Last back&up</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="action_search">
|
||||
<property name="text">
|
||||
<string>Search</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string>Ctrl+F</string>
|
||||
</property>
|
||||
</action>
|
||||
</widget>
|
||||
<resources>
|
||||
<include location="resources.qrc"/>
|
||||
|
@ -703,6 +703,10 @@ class VmManagerWindow(Ui_VmManagerWindow, QMainWindow):
|
||||
self.showhide_vms()
|
||||
self.set_table_geom_size()
|
||||
|
||||
@pyqtSlot(name='on_action_search_triggered')
|
||||
def action_search_triggered(self):
|
||||
self.searchbox.setFocus()
|
||||
|
||||
def mark_table_for_update(self):
|
||||
self.reload_table = True
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user