mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-04-28 18:53:06 +02:00
...
This commit is contained in:
parent
6d1b644cfc
commit
d07939daac
2 changed files with 6 additions and 6 deletions
|
|
@ -809,8 +809,8 @@ def apply_current_editor_state(self):
|
|||
if ed is not None:
|
||||
actions['editor-undo'].setEnabled(ed.undo_available)
|
||||
actions['editor-redo'].setEnabled(ed.redo_available)
|
||||
actions['editor-cut'].setEnabled(ed.copy_available)
|
||||
actions['editor-copy'].setEnabled(ed.cut_available)
|
||||
actions['editor-copy'].setEnabled(ed.copy_available)
|
||||
actions['editor-cut'].setEnabled(ed.cut_available)
|
||||
actions['go-to-line-number'].setEnabled(ed.has_line_numbers)
|
||||
actions['fix-html-current'].setEnabled(ed.syntax == 'html')
|
||||
name = None
|
||||
|
|
|
|||
|
|
@ -217,10 +217,10 @@ def reg(icon, text, target, sid, keys, description):
|
|||
_('Redo typing'))
|
||||
self.action_editor_cut = reg('edit-cut.png', _('C&ut text'), self.boss.do_editor_cut, 'editor-cut', ('Ctrl+X', 'Shift+Delete', ),
|
||||
_('Cut text'))
|
||||
self.action_editor_copy = reg('edit-copy.png', _('&Copy text'), self.boss.do_editor_copy, 'editor-copy', ('Ctrl+C', 'Ctrl+Insert'),
|
||||
_('Copy text'))
|
||||
self.action_editor_paste = reg('edit-paste.png', _('&Paste text'), self.boss.do_editor_paste, 'editor-paste', ('Ctrl+V', 'Shift+Insert', ),
|
||||
_('Paste text'))
|
||||
self.action_editor_copy = reg('edit-copy.png', _('&Copy to clipboard'), self.boss.do_editor_copy, 'editor-copy', ('Ctrl+C', 'Ctrl+Insert'),
|
||||
_('Copy to clipboard'))
|
||||
self.action_editor_paste = reg('edit-paste.png', _('&Paste from clipboard'), self.boss.do_editor_paste, 'editor-paste', ('Ctrl+V', 'Shift+Insert', ),
|
||||
_('Paste from clipboard'))
|
||||
self.action_editor_cut.setEnabled(False)
|
||||
self.action_editor_copy.setEnabled(False)
|
||||
self.action_editor_undo.setEnabled(False)
|
||||
|
|
|
|||
Loading…
Reference in a new issue