Skip to content

Commit

Permalink
Changes for handling Shortcuts with traitlets in consoleWidget
Browse files Browse the repository at this point in the history
  • Loading branch information
jsbautista committed Sep 2, 2024
1 parent 92549cb commit fce7517
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions qtconsole/console_widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -401,15 +401,15 @@ def __init__(self, parent=None, **kw):

def update_shortcuts(self, change):
if change['name'] == 'shortcut_print':
self.open_action.setShortcut(change['new'])
self.print_action.setShortcut(change['new'])
elif change['name'] == 'shortcut_select_all':
self.save_action.setShortcut(change['new'])
self.select_all_action.setShortcut(change['new'])
elif change['name'] == 'shortcut_cut':
self.close_action.setShortcut(change['new'])
self.cut_action.setShortcut(change['new'])
elif change['name'] == 'shortcut_copy':
self.new_action.setShortcut(change['new'])
self.copy_action.setShortcut(change['new'])
elif change['name'] == 'shortcut_paste':
self.new_action.setShortcut(change['new'])
self.paste_action.setShortcut(change['new'])

#---------------------------------------------------------------------------
# Drag and drop support
Expand Down

0 comments on commit fce7517

Please sign in to comment.