From 44856735be574b8513763605dd2b000914568a6a Mon Sep 17 00:00:00 2001 From: David Capello Date: Sun, 15 Apr 2012 15:56:47 -0300 Subject: [PATCH] Fix problem using Alt+mnemonic when the focus is inside a Entry widget. --- src/gui/entry.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/gui/entry.cpp b/src/gui/entry.cpp index bf037eacb..065c580fe 100644 --- a/src/gui/entry.cpp +++ b/src/gui/entry.cpp @@ -241,7 +241,11 @@ bool Entry::onProcessMessage(Message* msg) default: if (msg->key.ascii >= 32) { - cmd = EntryCmd::InsertChar; + // Ctrl and Alt must be unpressed to insert a character + // in the text-field. + if ((msg->any.shifts & (KB_CTRL_FLAG | KB_ALT_FLAG)) == 0) { + cmd = EntryCmd::InsertChar; + } } else { // map common Windows shortcuts for Cut/Copy/Paste