Make it possible to force-lock the screen even if idle timer hasn't tripped. Add shortcuts for lock and unlock of screen
This commit is contained in:
parent
807a21e9af
commit
47a380ad38
4 changed files with 8 additions and 0 deletions
|
|
@ -226,6 +226,10 @@ class MainWindow(QMainWindow):
|
|||
act_stats.setShortcut("Ctrl+Shift+S")
|
||||
act_stats.triggered.connect(self._open_statistics)
|
||||
file_menu.addAction(act_stats)
|
||||
act_lock = QAction(strings._("main_window_lock_screen_accessibility"), self)
|
||||
act_lock.setShortcut("Ctrl+Shift+L")
|
||||
act_lock.triggered.connect(self._enter_lock)
|
||||
file_menu.addAction(act_lock)
|
||||
file_menu.addSeparator()
|
||||
act_quit = QAction("&" + strings._("quit"), self)
|
||||
act_quit.setShortcut("Ctrl+Q")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue