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'
|
actual_plugin = 'calibre.gui2.actions.show_quickview:FocusToQuickviewAction'
|
||||||
description = _('Move the focus to the Quickview pane/window')
|
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):
|
class ActionTemplateTester(InterfaceActionBase):
|
||||||
name = 'Template Tester'
|
name = 'Template Tester'
|
||||||
actual_plugin = 'calibre.gui2.actions.show_template_tester:ShowTemplateTesterAction'
|
actual_plugin = 'calibre.gui2.actions.show_template_tester:ShowTemplateTesterAction'
|
||||||
@ -984,8 +979,7 @@ plugins += [ActionAdd, ActionFetchAnnotations, ActionGenerateCatalog,
|
|||||||
ActionAddToLibrary, ActionEditCollections, ActionMatchBooks, ActionChooseLibrary,
|
ActionAddToLibrary, ActionEditCollections, ActionMatchBooks, ActionChooseLibrary,
|
||||||
ActionCopyToLibrary, ActionTweakEpub, ActionUnpackBook, ActionNextMatch, ActionStore,
|
ActionCopyToLibrary, ActionTweakEpub, ActionUnpackBook, ActionNextMatch, ActionStore,
|
||||||
ActionPluginUpdater, ActionPickRandom, ActionEditToC, ActionSortBy,
|
ActionPluginUpdater, ActionPickRandom, ActionEditToC, ActionSortBy,
|
||||||
ActionMarkBooks, ActionEmbed, ActionTemplateTester, ActionQuickviewFocusTo,
|
ActionMarkBooks, ActionEmbed, ActionTemplateTester, ActionQuickviewFocusTo]
|
||||||
ActionQuickviewFocusFrom]
|
|
||||||
|
|
||||||
# }}}
|
# }}}
|
||||||
|
|
||||||
|
@ -27,20 +27,6 @@ class FocusToQuickviewAction(InterfaceAction):
|
|||||||
if qv:
|
if qv:
|
||||||
qv.actual_plugin_.focus_quickview()
|
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):
|
class ShowQuickviewAction(InterfaceAction):
|
||||||
|
|
||||||
name = 'Show Quickview'
|
name = 'Show Quickview'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user