mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-01 00:23:35 +00:00
Fix problem using Alt+mnemonic when the focus is inside a Entry widget.
This commit is contained in:
parent
8a1295c025
commit
44856735be
@ -241,7 +241,11 @@ bool Entry::onProcessMessage(Message* msg)
|
|||||||
|
|
||||||
default:
|
default:
|
||||||
if (msg->key.ascii >= 32) {
|
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 {
|
else {
|
||||||
// map common Windows shortcuts for Cut/Copy/Paste
|
// map common Windows shortcuts for Cut/Copy/Paste
|
||||||
|
Loading…
Reference in New Issue
Block a user