TIP #464: SUPPORT FOR MULTIMEDIA KEYS ON WINDOWS ================================================== Version: $Revision: 1.6 $ Author: Ralf Fassel Andreas Leitgeb State: Final Type: Project Tcl-Version: 8.5 Vote: Done Created: Saturday, 28 January 2017 URL: https://tip.tcl-lang.org464.html Post-History: ------------------------------------------------------------------------- ABSTRACT ========== This TIP proposes adding support for the multimedia keys present on many modern keyboards. RATIONALE =========== Tk is lacking support for the multimedia keys as described on 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). PROPOSAL ========== The table of supported keys should be extended to include the following named keys: * *XF86AudioLowerVolume* - the volume-down key * *XF86AudioMute* - the volume-mute key * *XF86AudioNext* - the next-track key * *XF86AudioPlay* - the start-playback key * *XF86AudioPrev* - the previous-track key * *XF86AudioRaiseVolume* - the volume-up key * *XF86AudioStop* - the stop-playback key The above list does not imply any ordering in the implementation. IMPLEMENTATION ================ The support can be added by extending some keymapping lookup tables in Tk. A Ticket already exists with a proposed patch [] and fvogel has also created a branch []. COPYRIGHT =========== This document has been placed in the public domain. ------------------------------------------------------------------------- TIP AutoGenerator - written by Donal K. Fellows