Add a signal to track enter key presses used by the action chains plugin

This commit is contained in:
Kovid Goyal 2021-08-02 20:50:45 +05:30
parent 3cb3668ea8
commit 3b77377b54
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
2 changed files with 2 additions and 0 deletions

View File

@ -71,6 +71,7 @@ def handle_enter_press(self, ev, special_action=None, has_edit_cell=True):
if special_action is not None:
special_action(self.currentIndex())
gui.iactions['View'].view_triggered(self.currentIndex())
gui.enter_key_pressed_in_book_list.emit(self)
return True

View File

@ -109,6 +109,7 @@ class Main(MainWindow, MainWindowMixin, DeviceMixin, EmailMixin, # {{{
proceed_requested = pyqtSignal(object, object)
book_converted = pyqtSignal(object, object)
enter_key_pressed_in_book_list = pyqtSignal(object) # used by action chains plugin
shutting_down = False
def __init__(self, opts, parent=None, gui_debug=None):