Mercurial > octave
changeset 25257:bf2044618c7b stable
Don't make shortcut key 'Escape' translateable (bug #53526).
* documentation.cc (documentation::documentation): Don't make shortcut key
translateable (bug #53526).
author | Markus Mützel <markus.muetzel@gmx.de> |
---|---|
date | Sun, 15 Apr 2018 19:35:09 +0200 |
parents | 982613dccf13 |
children | d56ff4681065 601cc3a063f5 |
files | libgui/src/documentation.cc |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libgui/src/documentation.cc Sun Apr 15 17:40:57 2018 -0700 +++ b/libgui/src/documentation.cc Sun Apr 15 19:35:09 2018 +0200 @@ -141,7 +141,7 @@ m_find_line_edit, SLOT (selectAll (void))); connect (show_shortcut, SIGNAL (activated (void)), m_find_line_edit, SLOT (setFocus (void))); - QShortcut *hide_shortcut = new QShortcut (QKeySequence (tr ("Escape")), p); + QShortcut *hide_shortcut = new QShortcut (Qt::Key_Escape, p); hide_shortcut->setContext (Qt::WidgetWithChildrenShortcut); connect (hide_shortcut, SIGNAL (activated (void)), m_find_line_edit->parentWidget (), SLOT(hide (void)));