mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-06 06:58:15 +00:00
[devmode] F1 key switches the renderer only when pressed w/o modifiers
This commit is contained in:
parent
0958573cac
commit
bfe4669c0e
@ -2033,7 +2033,7 @@ bool Editor::onProcessMessage(Message* msg)
|
|||||||
case kKeyDownMessage:
|
case kKeyDownMessage:
|
||||||
#if ENABLE_DEVMODE
|
#if ENABLE_DEVMODE
|
||||||
// Switch renderer
|
// Switch renderer
|
||||||
if (!msg->ctrlPressed() &&
|
if (msg->modifiers() == 0 &&
|
||||||
static_cast<KeyMessage*>(msg)->scancode() == kKeyF1) {
|
static_cast<KeyMessage*>(msg)->scancode() == kKeyF1) {
|
||||||
// TODO replace this experimental flag with a new enum (or
|
// TODO replace this experimental flag with a new enum (or
|
||||||
// maybe there is no need for user option now that the
|
// maybe there is no need for user option now that the
|
||||||
|
Loading…
Reference in New Issue
Block a user