Merge branch 'master' of https://github.com/HunterNN/aseprite into HunterNN-master

This commit is contained in:
David Capello 2016-03-26 10:49:36 -03:00
commit fde573d8db

View File

@ -215,6 +215,16 @@ bool DrawingState::onKeyDown(Editor* editor, KeyMessage* msg)
bool DrawingState::onKeyUp(Editor* editor, KeyMessage* msg)
{
m_toolLoopManager->releaseKey(msg->scancode());
// Cancel drawing loop
if (m_toolLoopManager->isCanceled()) {
destroyLoop(editor);
// Change to standby state
editor->backToPreviousState();
editor->releaseMouse();
}
return true;
}