From fce75174ee5c57d4abf62a55143c470527a83f73 Mon Sep 17 00:00:00 2001 From: jsbautista Date: Mon, 2 Sep 2024 13:57:10 -0500 Subject: [PATCH] Changes for handling Shortcuts with traitlets in consoleWidget --- qtconsole/console_widget.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/qtconsole/console_widget.py b/qtconsole/console_widget.py index 2c44e453..ac1ae4ca 100644 --- a/qtconsole/console_widget.py +++ b/qtconsole/console_widget.py @@ -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