Timeline: Esc key deselect the selected range of frames/layers

This commit is contained in:
David Capello 2013-12-22 12:17:07 -03:00
parent b4d9e3c9ca
commit 9650e1df27

View File

@ -762,6 +762,11 @@ bool Timeline::onProcessMessage(Message* msg)
case kKeyUpMessage:
switch (static_cast<KeyMessage*>(msg)->scancode()) {
case kKeyEsc:
m_range.disableRange();
invalidate();
break;
case kKeySpace:
if (m_space_pressed) {
// We have to clear all the KEY_SPACE in buffer.