TIP #464: Support for Multimedia Keys on Windows

Title:Support for Multimedia Keys on Windows
Version:$Revision: 1.5 $
Authors: Ralf Fassel <ralfixx at gmx dot de>
Andreas Leitgeb <avl at logic dot at>
Vote:In progress
Created:Saturday, 28 January 2017
Keywords:Tk, keyboard, keycode


This TIP proposes adding support for the multimedia keys present on many modern keyboards.


Tk is lacking support for the multimedia keys as described on https://msdn.microsoft.com/en-us/library/windows/desktop/dd375731%28v=vs.85%29.aspx

VK_VOLUME_DOWN        0xAE   Volume Down key
VK_VOLUME_UP          0xAF   Volume Up key
VK_MEDIA_NEXT_TRACK   0xB0   Next Track key
VK_MEDIA_PREV_TRACK   0xB1   Previous Track key
VK_MEDIA_STOP         0xB2   Stop Media key
VK_MEDIA_PLAY_PAUSE   0xB3   Play/Pause Media key

Linux supports these as, e.g., XF86AudioPlay, XF86AudioPrev, XF86AudioNext. Tk should support them as well so that application programmers can make use of the keys as appropriate.

Because this is driven by changing external circumstances, it is propsed that this TIP be backported to all future-releaseable versions of Tk (i.e., 8.5 onwards).


The table of supported keys should be extended to include the following named keys:

The above list does not imply any ordering in the implementation.


The support can be added by extending some keymapping lookup tables in Tk.

A Ticket already exists with a proposed patch [1] and fvogel has also created a branch [2].


This document has been placed in the public domain.

Powered by Tcl[Index] [History] [HTML Format] [Source Format] [LaTeX Format] [Text Format] [XML Format] [*roff Format (experimental)] [RTF Format (experimental)]

TIP AutoGenerator - written by Donal K. Fellows