[aseprite] 05/51: Don't ignore Space bar on sprite editor when Timeline range is enabled (fix #877)
Tobias Hansen
thansen at moszumanska.debian.org
Mon Jul 11 21:35:14 UTC 2016
This is an automated email from the git hooks/post-receive script.
thansen pushed a commit to branch master
in repository aseprite.
commit 893f757eea61f6d6a2b9d0392b852238d3d5f4e6
Author: David Capello <davidcapello at gmail.com>
Date: Mon Jun 13 11:55:16 2016 -0300
Don't ignore Space bar on sprite editor when Timeline range is enabled (fix #877)
---
src/app/ui/timeline.cpp | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/src/app/ui/timeline.cpp b/src/app/ui/timeline.cpp
index a166608..2c56fb2 100644
--- a/src/app/ui/timeline.cpp
+++ b/src/app/ui/timeline.cpp
@@ -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;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/aseprite.git
More information about the Pkg-games-commits
mailing list