mirror of
https://github.com/aseprite/aseprite.git
synced 2025-02-06 03:39:51 +00:00
Merge branch 'master' of https://github.com/HunterNN/aseprite into HunterNN-master
This commit is contained in:
commit
fde573d8db
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user