From b6590f8fb1685c9384db433d92f69cf3b1f46f5d Mon Sep 17 00:00:00 2001 From: Jekyll Wu Date: Fri, 13 Jan 2012 20:42:04 +0800 Subject: [PATCH] Attempt to allow user to choose whether disabling menu accelerators --- src/MainWindow.cpp | 5 ++++- src/settings/konsole.kcfg | 5 +++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/MainWindow.cpp b/src/MainWindow.cpp index 363c2d16d..5a530f96a 100644 --- a/src/MainWindow.cpp +++ b/src/MainWindow.cpp @@ -121,7 +121,7 @@ MainWindow::MainWindow() // defined in ui_standards.rc to be re-defined in the local application // XMLGUI file (konsoleui.rc in this case) - the text for standard items // can then be redefined there to exclude the standard accelerators - removeMenuAccelerators(); + //removeMenuAccelerators(); // replace standard shortcuts which cannot be used in a terminal // (as they are reserved for use by terminal programs) correctShortcuts(); @@ -516,6 +516,9 @@ void MainWindow::showSettingsDialog() void MainWindow::applyAppSettings() { + if ( !AppSettings::allowMenuAccelerators() ) { + removeMenuAccelerators(); + } // setAutoSaveSettings("MainWindow", AppSettings::saveGeometryOnExit()); } diff --git a/src/settings/konsole.kcfg b/src/settings/konsole.kcfg index 2eeec16ca..40aa9b08b 100644 --- a/src/settings/konsole.kcfg +++ b/src/settings/konsole.kcfg @@ -20,6 +20,11 @@ The window size will be saved upon exiting Konsole true + + + Allow users to access top menu through Alt+Key combination + false +