From 1e3a60e286b0073e5666f4f53ec0f73e977ae8cf Mon Sep 17 00:00:00 2001 From: Jean-Philippe Ouellet Date: Wed, 14 Dec 2016 17:29:44 -0500 Subject: [PATCH] Add Ctrl+F as keyboard shortcut to focus search box --- mainwindow.ui | 10 ++++++++++ qubesmanager/main.py | 4 ++++ 2 files changed, 14 insertions(+) diff --git a/mainwindow.ui b/mainwindow.ui index df45eff..c20b508 100644 --- a/mainwindow.ui +++ b/mainwindow.ui @@ -310,6 +310,8 @@ + + @@ -914,6 +916,14 @@ Last back&up + + + Search + + + Ctrl+F + + diff --git a/qubesmanager/main.py b/qubesmanager/main.py index 9af0e39..a6077e2 100755 --- a/qubesmanager/main.py +++ b/qubesmanager/main.py @@ -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