Mercurial > hg > octave-nkf
diff libgui/src/m-editor/file-editor.cc @ 16176:74ba79f79fcc
gui: improve shortcuts for the editor (bug #38383) and for widget navigation
* file-editor.cc (construct): Implement platform dependant "save" and "save as"
shortcuts for the editor; use platform dependant "find" shortcut for find
dialog instead of hard coded "ctrl-f"
* main-window.cc (contruct): Replace some shortcuts by platform dependant ones;
remove "ctrl-s" for saving the workspace; change shortcuts for changing
visibility or focus of widgets to application wide shortcuts (also working
when other floating widgets have focus)
author | Torsten <ttl@justmail.de> |
---|---|
date | Sat, 02 Mar 2013 22:41:00 +0100 |
parents | 6f83158c714c |
children | f299079ed03a |
line wrap: on
line diff
--- a/libgui/src/m-editor/file-editor.cc +++ b/libgui/src/m-editor/file-editor.cc @@ -601,6 +601,10 @@ _cut_action->setEnabled(false); _run_action->setShortcut (Qt::ControlModifier+ Qt::Key_R); _run_action->setShortcutContext (Qt::WindowShortcut); + save_action->setShortcut (QKeySequence::Save); + save_action->setShortcutContext (Qt::WindowShortcut); + save_as_action->setShortcut (QKeySequence::SaveAs); + save_as_action->setShortcutContext (Qt::WindowShortcut); next_bookmark_action->setShortcut (Qt::Key_F2); next_bookmark_action->setShortcutContext (Qt::WindowShortcut); previous_bookmark_action->setShortcut (Qt::SHIFT + Qt::Key_F2); @@ -611,7 +615,7 @@ comment_selection_action->setShortcutContext (Qt::WindowShortcut); uncomment_selection_action->setShortcut (Qt::ControlModifier + Qt::Key_8); uncomment_selection_action->setShortcutContext(Qt::WindowShortcut); - find_action->setShortcut (Qt::ControlModifier+Qt::Key_F); + find_action->setShortcut (QKeySequence::Find); find_action->setShortcutContext (Qt::WindowShortcut); // toolbar