mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Take out the focus to library action. Shift+ESC already does that.
This commit is contained in:
parent
ab166f26c1
commit
61749bd646
@ -839,11 +839,6 @@ class ActionQuickviewFocusTo(InterfaceActionBase):
|
||||
actual_plugin = 'calibre.gui2.actions.show_quickview:FocusToQuickviewAction'
|
||||
description = _('Move the focus to the Quickview pane/window')
|
||||
|
||||
class ActionQuickviewFocusFrom(InterfaceActionBase):
|
||||
name = 'Focus From Quickview'
|
||||
actual_plugin = 'calibre.gui2.actions.show_quickview:FocusFromQuickviewAction'
|
||||
description = _('Move the focus to the library pane')
|
||||
|
||||
class ActionTemplateTester(InterfaceActionBase):
|
||||
name = 'Template Tester'
|
||||
actual_plugin = 'calibre.gui2.actions.show_template_tester:ShowTemplateTesterAction'
|
||||
@ -984,8 +979,7 @@ plugins += [ActionAdd, ActionFetchAnnotations, ActionGenerateCatalog,
|
||||
ActionAddToLibrary, ActionEditCollections, ActionMatchBooks, ActionChooseLibrary,
|
||||
ActionCopyToLibrary, ActionTweakEpub, ActionUnpackBook, ActionNextMatch, ActionStore,
|
||||
ActionPluginUpdater, ActionPickRandom, ActionEditToC, ActionSortBy,
|
||||
ActionMarkBooks, ActionEmbed, ActionTemplateTester, ActionQuickviewFocusTo,
|
||||
ActionQuickviewFocusFrom]
|
||||
ActionMarkBooks, ActionEmbed, ActionTemplateTester, ActionQuickviewFocusTo]
|
||||
|
||||
# }}}
|
||||
|
||||
|
@ -27,20 +27,6 @@ class FocusToQuickviewAction(InterfaceAction):
|
||||
if qv:
|
||||
qv.actual_plugin_.focus_quickview()
|
||||
|
||||
|
||||
class FocusFromQuickviewAction(InterfaceAction):
|
||||
|
||||
name = 'Focus From Quickview'
|
||||
action_spec = (_('Focus From Quickview'), 'search.png', None, ('Ctrl+Q'))
|
||||
dont_add_to = frozenset(['context-menu-device'])
|
||||
action_type = 'current'
|
||||
|
||||
def genesis(self):
|
||||
self.qaction.triggered.connect(self.focus_quickview)
|
||||
|
||||
def focus_quickview(self, *args):
|
||||
self.gui.library_view.setFocus()
|
||||
|
||||
class ShowQuickviewAction(InterfaceAction):
|
||||
|
||||
name = 'Show Quickview'
|
||||
|
Loading…
x
Reference in New Issue
Block a user