Don't ignore Space bar on sprite editor when Timeline range is enabled (fix #877)

This commit is contained in:
David Capello 2016-06-13 11:55:16 -03:00
parent 165d3af112
commit 893f757eea

View File

@ -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;