[vlc-commits] Win32: do not map Volume keys by default

Jean-Baptiste Kempf git at videolan.org
Mon Sep 16 17:41:41 CEST 2013


vlc/vlc-2.1 | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Mon Sep 16 17:33:09 2013 +0200| [dac16a4066adc51bacaa848982c8574f0f7cc298] | committer: Jean-Baptiste Kempf

Win32: do not map Volume keys by default

On Windows, it seems people expect volume keys to control the master
volume...
I'm not going to fight this fight with our users during support...

Ref #9373

(cherry picked from commit 8c6c1e78ebcb534fcdfe00aa3db195f6f351d63e)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.1.git/?a=commit;h=dac16a4066adc51bacaa848982c8574f0f7cc298
---

 src/libvlc-module.c |    7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/src/libvlc-module.c b/src/libvlc-module.c
index 83d43d3..250e791 100644
--- a/src/libvlc-module.c
+++ b/src/libvlc-module.c
@@ -2283,8 +2283,15 @@ vlc_module_begin ()
 #   define KEY_NAV_LEFT           "Left"
 #   define KEY_NAV_RIGHT          "Right"
 #   define KEY_QUIT               "Ctrl+q"
+
+#ifdef _WIN32 /* On Windows, people expect volume keys to control the master */
+#   define KEY_VOL_UP             "Ctrl+Up"
+#   define KEY_VOL_DOWN           "Ctrl+Down"
+#else
 #   define KEY_VOL_UP             "Ctrl+Up\tVolume Up"
 #   define KEY_VOL_DOWN           "Ctrl+Down\tVolume Down"
+#endif
+
 #   define KEY_VOL_MUTE           "m\tVolume Mute"
 #   define KEY_SUBDELAY_UP        "h"
 #   define KEY_SUBDELAY_DOWN      "g"



More information about the vlc-commits mailing list