mirror of
https://github.com/aseprite/aseprite.git
synced 2024-12-27 03:16:58 +00:00
Don't ignore Space bar on sprite editor when Timeline range is enabled (fix #877)
This commit is contained in:
parent
165d3af112
commit
893f757eea
@ -791,6 +791,14 @@ bool Timeline::onProcessMessage(Message* msg)
|
||||
break;
|
||||
|
||||
case kKeySpace: {
|
||||
// If we receive a key down event when the Space bar is
|
||||
// pressed (because the Timeline has the keyboard focus) but
|
||||
// we don't have the mouse inside, we don't consume this
|
||||
// event so the Space bar can be used by the Editor to
|
||||
// activate the hand/pan/scroll tool.
|
||||
if (!hasMouse())
|
||||
break;
|
||||
|
||||
m_scroll = true;
|
||||
used = true;
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user