[aseprite] 131/250: Avoid beep when Alt+char is pressed on Skia/Win port
Tobias Hansen
thansen at moszumanska.debian.org
Sun Dec 20 15:27:21 UTC 2015
This is an automated email from the git hooks/post-receive script.
thansen pushed a commit to branch master
in repository aseprite.
commit 7434dd053a5a8fd615e15413a6020f935fcb300f
Author: David Capello <davidcapello at gmail.com>
Date: Mon Oct 5 21:16:27 2015 -0300
Avoid beep when Alt+char is pressed on Skia/Win port
---
src/she/win/window.h | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/she/win/window.h b/src/she/win/window.h
index 840f809..6282092 100644
--- a/src/she/win/window.h
+++ b/src/she/win/window.h
@@ -428,6 +428,10 @@ namespace she {
return 0;
}
+ case WM_MENUCHAR:
+ // Avoid playing a sound when Alt+key is pressed and it's not in a native menu
+ return MAKELONG(0, MNC_CLOSE);
+
case WM_DROPFILES: {
HDROP hdrop = (HDROP)(wparam);
Event::Files files;
--
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