Mercurial > octave
diff libgui/src/main-window.cc @ 23941:804d60784340
fix shortcuts for showing and giving focus to the variable editor
* main-window.cc (configure_shortcuts): set shortcut for action that switches
to the variabel editor;
(construct_window_menu): fix wrong name of menu entry for variable editor
* shortcut-manager.cc (do_init_data): initialize shortcuts related to the
variable editor
author | Torsten <mttl@mailbox.org> |
---|---|
date | Fri, 25 Aug 2017 17:30:32 +0200 |
parents | e3a36f84d01d |
children | 046f9ba5d9e9 |
line wrap: on
line diff
--- a/libgui/src/main-window.cc Fri Aug 25 08:29:55 2017 +0200 +++ b/libgui/src/main-window.cc Fri Aug 25 17:30:32 2017 +0200 @@ -2350,7 +2350,7 @@ (window_menu, tr ("Documentation"), false, doc_browser_window); _variable_editor_action = construct_window_menu_item - (window_menu, tr ("Documentation"), false, variable_editor_window); + (window_menu, tr ("Variable Editor"), false, variable_editor_window); window_menu->addSeparator (); @@ -2662,6 +2662,8 @@ shortcut_manager::set_shortcut (_show_editor_action, "main_window:show_editor"); shortcut_manager::set_shortcut (_show_documentation_action, "main_window:show_doc"); + shortcut_manager::set_shortcut (_show_variable_editor_action, + "main_window:show_variable_editor"); shortcut_manager::set_shortcut (_command_window_action, "main_window:command"); shortcut_manager::set_shortcut (_history_action, "main_window:history"); shortcut_manager::set_shortcut (_workspace_action, "main_window:workspace");