key_data: Update key names to reflect reality

Generated by:

import key_data
from PyQt5.QtCore import Qt
from PyQt5.QtGui import QKeySequence

for key in key_data.KEYS:
    attr = key.attribute
    member = getattr(Qt, 'Key_' + attr, None)
    if member is None:
        continue
    name = QKeySequence(member).toString()
    if name != attr:
        try:
            print("    Key('{}', '{}')".format(attr, name))
        except UnicodeEncodeError:
            print("    Key('{}', '{}')  # FIXME".format(attr, name.encode('unicode-escape').decode('ascii')))
    else:
        print()
This commit is contained in:
Florian Bruhin 2018-02-28 09:34:27 +01:00
parent f714be0ff7
commit 8f479407a0

View File

@ -34,14 +34,14 @@ class Key:
# From enum Key in qt5/qtbase/src/corelib/global/qnamespace.h # From enum Key in qt5/qtbase/src/corelib/global/qnamespace.h
KEYS = [ KEYS = [
### misc keys ### misc keys
Key('Escape'), Key('Escape', 'Esc'),
Key('Tab'), Key('Tab'),
Key('Backtab'), Key('Backtab'),
Key('Backspace'), Key('Backspace'),
Key('Return'), Key('Return'),
Key('Enter'), Key('Enter'),
Key('Insert'), Key('Insert', 'Ins'),
Key('Delete'), Key('Delete', 'Del'),
Key('Pause'), Key('Pause'),
Key('Print'), # print screen Key('Print'), # print screen
Key('SysReq'), Key('SysReq'),
@ -53,13 +53,13 @@ KEYS = [
Key('Up'), Key('Up'),
Key('Right'), Key('Right'),
Key('Down'), Key('Down'),
Key('PageUp'), Key('PageUp', 'PgUp'),
Key('PageDown'), Key('PageDown', 'PgDown'),
### modifiers ### modifiers
Key('Shift'), Key('Shift', '\u17c0\udc20'), # FIXME
Key('Control'), Key('Control', '\u17c0\udc21'), # FIXME
Key('Meta'), Key('Meta', '\u17c0\udc22'), # FIXME
Key('Alt'), Key('Alt', '\u17c0\udc23'), # FIXME
Key('CapsLock'), Key('CapsLock'),
Key('NumLock'), Key('NumLock'),
Key('ScrollLock'), Key('ScrollLock'),
@ -101,32 +101,32 @@ KEYS = [
Key('F34'), Key('F34'),
Key('F35'), Key('F35'),
### extra keys ### extra keys
Key('Super_L'), Key('Super_L', '\u17c0\udc53'), # FIXME
Key('Super_R'), Key('Super_R', '\u17c0\udc54'), # FIXME
Key('Menu'), Key('Menu'),
Key('Hyper_L'), Key('Hyper_L', '\u17c0\udc56'), # FIXME
Key('Hyper_R'), Key('Hyper_R', '\u17c0\udc57'), # FIXME
Key('Help'), Key('Help'),
Key('Direction_L'), Key('Direction_L', '\u17c0\udc59'), # FIXME
Key('Direction_R'), Key('Direction_R', '\u17c0\udc60'), # FIXME
### 7 bit printable ASCII ### 7 bit printable ASCII
Key('Space'), Key('Space'),
Key('Any'), Key('Any', 'Space'), # FIXME
Key('Exclam'), Key('Exclam', '!'),
Key('QuoteDbl'), Key('QuoteDbl', '"'),
Key('NumberSign'), Key('NumberSign', '#'),
Key('Dollar'), Key('Dollar', '$'),
Key('Percent'), Key('Percent', '%'),
Key('Ampersand'), Key('Ampersand', '&'),
Key('Apostrophe'), Key('Apostrophe', "'"),
Key('ParenLeft'), Key('ParenLeft', '('),
Key('ParenRight'), Key('ParenRight', '),')
Key('Asterisk'), Key('Asterisk', '*'),
Key('Plus'), Key('Plus', '+'),
Key('Comma'), Key('Comma', ','),
Key('Minus'), Key('Minus', '-'),
Key('Period'), Key('Period', '.'),
Key('Slash'), Key('Slash', '/'),
Key('0'), Key('0'),
Key('1'), Key('1'),
Key('2'), Key('2'),
@ -137,12 +137,13 @@ KEYS = [
Key('7'), Key('7'),
Key('8'), Key('8'),
Key('9'), Key('9'),
Key('Colon'), Key('Colon', ':'),
Key('Semicolon'), Key('Semicolon', ';'),
Key('Less'), Key('Less', '<'),
Key('Equal'), Key('Equal', '='),
Key('Greater'), Key('Greater', '>'),
Key('Question'), Key('Question', '?'),
Key('At', '@'),
Key('At'), Key('At'),
Key('A'), Key('A'),
Key('B'), Key('B'),
@ -170,95 +171,96 @@ KEYS = [
Key('X'), Key('X'),
Key('Y'), Key('Y'),
Key('Z'), Key('Z'),
Key('BracketLeft'), Key('BracketLeft', '['),
Key('Backslash'), Key('Backslash', '\\'),
Key('BracketRight'), Key('BracketRight', ']'),
Key('AsciiCircum'), Key('AsciiCircum', '^'),
Key('Underscore'), Key('Underscore', '_'),
Key('QuoteLeft'), Key('QuoteLeft', '`'),
Key('BraceLeft'), Key('BraceLeft', '{'),
Key('Bar'), Key('Bar', '|'),
Key('BraceRight'), Key('BraceRight', '}'),
Key('AsciiTilde'), Key('AsciiTilde', '~'),
Key('nobreakspace'), Key('nobreakspace', ' '),
Key('exclamdown'), Key('exclamdown', '¡'),
Key('cent'), Key('cent', '¢'),
Key('sterling'), Key('sterling', '£'),
Key('currency'), Key('currency', '¤'),
Key('yen'), Key('yen', '¥'),
Key('brokenbar'), Key('brokenbar', '¦'),
Key('section'), Key('section', '§'),
Key('diaeresis'), Key('diaeresis', '¨'),
Key('copyright'), Key('copyright', '©'),
Key('ordfeminine'), Key('ordfeminine', 'ª'),
Key('guillemotleft'), # left angle quotation mark Key('guillemotleft', '«'),
Key('notsign'), Key('notsign', '¬'),
Key('hyphen'), Key('hyphen', '­'),
Key('registered'), Key('registered', '®'),
Key('macron'), Key('macron', '¯'),
Key('degree'), Key('degree', '°'),
Key('plusminus'), Key('plusminus', '±'),
Key('twosuperior'), Key('twosuperior', '²'),
Key('threesuperior'), Key('threesuperior', '³'),
Key('acute'), Key('acute', '´'),
Key('mu'), Key('mu', 'Μ'),
Key('paragraph'), Key('paragraph', ''),
Key('periodcentered'), Key('periodcentered', '·'),
Key('cedilla'), Key('cedilla', '¸'),
Key('onesuperior'), Key('onesuperior', '¹'),
Key('masculine'), Key('masculine', 'º'),
Key('guillemotright'), # right angle quotation mark Key('guillemotright', '»'),
Key('onequarter'), Key('onequarter', '¼'),
Key('onehalf'), Key('onehalf', '½'),
Key('threequarters'), Key('threequarters', '¾'),
Key('questiondown'), Key('questiondown', '¿'),
Key('Agrave'), Key('Agrave', 'À'),
Key('Aacute'), Key('Aacute', 'Á'),
Key('Acircumflex'), Key('Acircumflex', 'Â'),
Key('Atilde'), Key('Atilde', 'Ã'),
Key('Adiaeresis'), Key('Adiaeresis', 'Ä'),
Key('Aring'), Key('Aring', 'Å'),
Key('AE'), Key('AE', 'Æ'),
Key('Ccedilla'), Key('Ccedilla', 'Ç'),
Key('Egrave'), Key('Egrave', 'È'),
Key('Eacute'), Key('Eacute', 'É'),
Key('Ecircumflex'), Key('Ecircumflex', 'Ê'),
Key('Ediaeresis'), Key('Ediaeresis', 'Ë'),
Key('Igrave'), Key('Igrave', 'Ì'),
Key('Iacute'), Key('Iacute', 'Í'),
Key('Icircumflex'), Key('Icircumflex', 'Î'),
Key('Idiaeresis'), Key('Idiaeresis', 'Ï'),
Key('ETH'), Key('ETH', 'Ð'),
Key('Ntilde'), Key('Ntilde', 'Ñ'),
Key('Ograve'), Key('Ograve', 'Ò'),
Key('Oacute'), Key('Oacute', 'Ó'),
Key('Ocircumflex'), Key('Ocircumflex', 'Ô'),
Key('Otilde'), Key('Otilde', 'Õ'),
Key('Odiaeresis'), Key('Odiaeresis', 'Ö'),
Key('multiply'), Key('multiply', '×'),
Key('Ooblique'), Key('Ooblique', 'Ø'),
Key('Ugrave'), Key('Ugrave', 'Ù'),
Key('Uacute'), Key('Uacute', 'Ú'),
Key('Ucircumflex'), Key('Ucircumflex', 'Û'),
Key('Udiaeresis'), Key('Udiaeresis', 'Ü'),
Key('Yacute'), Key('Yacute', 'Ý'),
Key('THORN'), Key('THORN', 'Þ'),
Key('ssharp'), Key('ssharp', 'ß'),
Key('division'), Key('division', '÷'),
Key('ydiaeresis'), Key('ydiaeresis', 'Ÿ'),
### International input method support (X keycode - 0xEE00, the ### International input method support (X keycode - 0xEE00, the
### definition follows Qt/Embedded 2.3.7) Only interesting if ### definition follows Qt/Embedded 2.3.7) Only interesting if
### you are writing your own input method ### you are writing your own input method
### International & multi-key character composition ### International & multi-key character composition
Key('AltGr'), Key('AltGr', '\u17c4\udd03'), # FIXME
Key('Multi_key'), # Multi-key character compose Key('Multi_key', '\u17c4\udd20'), # FIXME Multi-key character compose
Key('Codeinput'), Key('Codeinput', 'Code input'),
Key('SingleCandidate'), Key('SingleCandidate', '\u17c4\udd3c'), # FIXME
Key('MultipleCandidate'), Key('MultipleCandidate', 'Multiple Candidate'),
Key('PreviousCandidate'), Key('PreviousCandidate', 'Previous Candidate'),
Key('Mode_switch', '\u17c4\udd7e'), # FIXME
### Misc Functions ### Misc Functions
Key('Mode_switch'), # Character set switch Key('Mode_switch'), # Character set switch
@ -272,17 +274,16 @@ KEYS = [
Key('Romaji'), # to Romaji Key('Romaji'), # to Romaji
Key('Hiragana'), # to Hiragana Key('Hiragana'), # to Hiragana
Key('Katakana'), # to Katakana Key('Katakana'), # to Katakana
# Hiragana/Katakana toggle Key('Hiragana_Katakana', 'Hiragana Katakana'), # Hiragana/Katakana toggle
Key('Hiragana_Katakana'),
Key('Zenkaku'), # to Zenkaku Key('Zenkaku'), # to Zenkaku
Key('Hankaku'), # to Hankaku Key('Hankaku'), # to Hankaku
Key('Zenkaku_Hankaku'), # Zenkaku/Hankaku toggle Key('Zenkaku_Hankaku', 'Zenkaku Hankaku'), # Zenkaku/Hankaku toggle
Key('Touroku'), # Add to Dictionary Key('Touroku'), # Add to Dictionary
Key('Massyo'), # Delete from Dictionary Key('Massyo'), # Delete from Dictionary
Key('Kana_Lock'), # Kana Lock Key('Kana_Lock', 'Kana Lock'),
Key('Kana_Shift'), # Kana Shift Key('Kana_Shift', 'Kana Shift'),
Key('Eisu_Shift'), # Alphanumeric Shift Key('Eisu_Shift', 'Eisu Shift'), # Alphanumeric Shift
Key('Eisu_toggle'), # Alphanumeric toggle Key('Eisu_toggle', 'Eisu toggle'), # Alphanumeric toggle
# Key('Kanji_Bangou'), # Codeinput # Key('Kanji_Bangou'), # Codeinput
# Key('Zen_Koho'), # Multiple/All Candidate(s) # Key('Zen_Koho'), # Multiple/All Candidate(s)
# Key('Mae_Koho'), # Previous Candidate # Key('Mae_Koho'), # Previous Candidate
@ -292,43 +293,43 @@ KEYS = [
### In fact, many Korean users need only 2 keys, Key_Hangul and ### In fact, many Korean users need only 2 keys, Key_Hangul and
### Key_Hangul_Hanja. But rest of the keys are good for future. ### Key_Hangul_Hanja. But rest of the keys are good for future.
Key('Hangul'), # Hangul start/stop(toggle) Key('Hangul'), # Hangul start/stop(toggle),
Key('Hangul_Start'), # Hangul start Key('Hangul_Start', 'Hangul Start'), # Hangul start
Key('Hangul_End'), # Hangul end, English start Key('Hangul_End', 'Hangul End'), # Hangul end, English start
Key('Hangul_Hanja'), # Start Hangul->Hanja Conversion Key('Hangul_Hanja', 'Hangul Hanja'), # Start Hangul->Hanja Conversion
Key('Hangul_Jamo'), # Hangul Jamo mode Key('Hangul_Jamo', 'Hangul Jamo'), # Hangul Jamo mode
Key('Hangul_Romaja'), # Hangul Romaja mode Key('Hangul_Romaja', 'Hangul Romaja'), # Hangul Romaja mode
# Key('Hangul_Codeinput'),# Hangul code input mode # Key('Hangul_Codeinput', 'Hangul Codeinput'),# Hangul code input mode
Key('Hangul_Jeonja'), # Jeonja mode Key('Hangul_Jeonja', 'Hangul Jeonja'), # Jeonja mode
Key('Hangul_Banja'), # Banja mode Key('Hangul_Banja', 'Hangul Banja'), # Banja mode
Key('Hangul_PreHanja'), # Pre Hanja conversion Key('Hangul_PreHanja', 'Hangul PreHanja'), # Pre Hanja conversion
Key('Hangul_PostHanja'), # Post Hanja conversion Key('Hangul_PostHanja', 'Hangul PostHanja'), # Post Hanja conversion
# Key('Hangul_SingleCandidate'), # Single candidate # Key('Hangul_SingleCandidate', 'Hangul SingleCandidate'), # Single candidate
# Key('Hangul_MultipleCandidate'), # Multiple candidate # Key('Hangul_MultipleCandidate', 'Hangul MultipleCandidate'), # Multiple candidate
# Key('Hangul_PreviousCandidate'), # Previous candidate # Key('Hangul_PreviousCandidate', 'Hangul PreviousCandidate'), # Previous candidate
Key('Hangul_Special'), # Special symbols Key('Hangul_Special', 'Hangul Special'), # Special symbols
# Key('Hangul_switch'), # Alias for mode_switch # Key('Hangul_switch', 'Hangul switch'), # Alias for mode_switch
# dead keys (X keycode - 0xED00 to avoid the conflict) # dead keys (X keycode - 0xED00 to avoid the conflict),
Key('Dead_Grave'), Key('Dead_Grave', '\u17c4\ude50'), # FIXME
Key('Dead_Acute'), Key('Dead_Acute', '\u17c4\ude51'), # FIXME
Key('Dead_Circumflex'), Key('Dead_Circumflex', '\u17c4\ude52'), # FIXME
Key('Dead_Tilde'), Key('Dead_Tilde', '\u17c4\ude53'), # FIXME
Key('Dead_Macron'), Key('Dead_Macron', '\u17c4\ude54'), # FIXME
Key('Dead_Breve'), Key('Dead_Breve', '\u17c4\ude55'), # FIXME
Key('Dead_Abovedot'), Key('Dead_Abovedot', '\u17c4\ude56'), # FIXME
Key('Dead_Diaeresis'), Key('Dead_Diaeresis', '\u17c4\ude57'), # FIXME
Key('Dead_Abovering'), Key('Dead_Abovering', '\u17c4\ude58'), # FIXME
Key('Dead_Doubleacute'), Key('Dead_Doubleacute', '\u17c4\ude59'), # FIXME
Key('Dead_Caron'), Key('Dead_Caron', '\u17c4\ude5a'), # FIXME
Key('Dead_Cedilla'), Key('Dead_Cedilla', '\u17c4\ude5b'), # FIXME
Key('Dead_Ogonek'), Key('Dead_Ogonek', '\u17c4\ude5c'), # FIXME
Key('Dead_Iota'), Key('Dead_Iota', '\u17c4\ude5d'), # FIXME
Key('Dead_Voiced_Sound'), Key('Dead_Voiced_Sound', '\u17c4\ude5e'), # FIXME
Key('Dead_Semivoiced_Sound'), Key('Dead_Semivoiced_Sound', '\u17c4\ude5f'), # FIXME
Key('Dead_Belowdot'), Key('Dead_Belowdot', '\u17c4\ude60'), # FIXME
Key('Dead_Hook'), Key('Dead_Hook', '\u17c4\ude61'), # FIXME
Key('Dead_Horn'), Key('Dead_Horn', '\u17c4\ude62'), # FIXME
# Not in Qt 5.10, so data may be wrong! # Not in Qt 5.10, so data may be wrong!
Key('Dead_Stroke'), Key('Dead_Stroke'),
@ -367,160 +368,161 @@ KEYS = [
Key('Forward'), Key('Forward'),
Key('Stop'), Key('Stop'),
Key('Refresh'), Key('Refresh'),
Key('VolumeDown'), Key('VolumeDown', 'Volume Down'),
Key('VolumeMute'), Key('VolumeMute', 'Volume Mute'),
Key('VolumeUp'), Key('VolumeUp', 'Volume Up'),
Key('BassBoost'), Key('BassBoost', 'Bass Boost'),
Key('BassUp'), Key('BassUp', 'Bass Up'),
Key('BassDown'), Key('BassDown', 'Bass Down'),
Key('TrebleUp'), Key('TrebleUp', 'Treble Up'),
Key('TrebleDown'), Key('TrebleDown', 'Treble Down'),
Key('MediaPlay'), Key('MediaPlay', 'Media Play'),
Key('MediaStop'), Key('MediaStop', 'Media Stop'),
Key('MediaPrevious'), Key('MediaPrevious', 'Media Previous'),
Key('MediaNext'), Key('MediaNext', 'Media Next'),
Key('MediaRecord'), Key('MediaRecord', 'Media Record'),
Key('MediaPause'), Key('MediaPause', 'Media Pause'),
Key('MediaTogglePlayPause'), Key('MediaTogglePlayPause', 'Toggle Media Play/Pause'),
Key('HomePage'), Key('HomePage', 'Home Page'),
Key('Favorites'), Key('Favorites'),
Key('Search'), Key('Search'),
Key('Standby'), Key('Standby'),
Key('OpenUrl'),
Key('LaunchMail'), Key('OpenUrl', 'Open URL'),
Key('LaunchMedia'), Key('LaunchMail', 'Launch Mail'),
Key('Launch0'), Key('LaunchMedia', 'Launch Media'),
Key('Launch1'), Key('Launch0', 'Launch (0),')
Key('Launch2'), Key('Launch1', 'Launch (1),')
Key('Launch3'), Key('Launch2', 'Launch (2),')
Key('Launch4'), Key('Launch3', 'Launch (3),')
Key('Launch5'), Key('Launch4', 'Launch (4),')
Key('Launch6'), Key('Launch5', 'Launch (5),')
Key('Launch7'), Key('Launch6', 'Launch (6),')
Key('Launch8'), Key('Launch7', 'Launch (7),')
Key('Launch9'), Key('Launch8', 'Launch (8),')
Key('LaunchA'), Key('Launch9', 'Launch (9),')
Key('LaunchB'), Key('LaunchA', 'Launch (A),')
Key('LaunchC'), Key('LaunchB', 'Launch (B),')
Key('LaunchD'), Key('LaunchC', 'Launch (C),')
Key('LaunchE'), Key('LaunchD', 'Launch (D),')
Key('LaunchF'), Key('LaunchE', 'Launch (E),')
Key('MonBrightnessUp'), Key('LaunchF', 'Launch (F),')
Key('MonBrightnessDown'), Key('MonBrightnessUp', 'Monitor Brightness Up'),
Key('KeyboardLightOnOff'), Key('MonBrightnessDown', 'Monitor Brightness Down'),
Key('KeyboardBrightnessUp'), Key('KeyboardLightOnOff', 'Keyboard Light On/Off'),
Key('KeyboardBrightnessDown'), Key('KeyboardBrightnessUp', 'Keyboard Brightness Up'),
Key('PowerOff'), Key('KeyboardBrightnessDown', 'Keyboard Brightness Down'),
Key('WakeUp'), Key('PowerOff', 'Power Off'),
Key('WakeUp', 'Wake Up'),
Key('Eject'), Key('Eject'),
Key('ScreenSaver'), Key('ScreenSaver', 'Screensaver'),
Key('WWW'), Key('WWW'),
Key('Memo'), Key('Memo', '\u17c0\udcbc'), # FIXME
Key('LightBulb'), Key('LightBulb'),
Key('Shop'), Key('Shop'),
Key('History'), Key('History'),
Key('AddFavorite'), Key('AddFavorite', 'Add Favorite'),
Key('HotLinks'), Key('HotLinks', 'Hot Links'),
Key('BrightnessAdjust'), Key('BrightnessAdjust', 'Adjust Brightness'),
Key('Finance'), Key('Finance'),
Key('Community'), Key('Community'),
Key('AudioRewind'), # Media rewind Key('AudioRewind', 'Media Rewind'),
Key('BackForward'), Key('BackForward', 'Back Forward'),
Key('ApplicationLeft'), Key('ApplicationLeft', 'Application Left'),
Key('ApplicationRight'), Key('ApplicationRight', 'Application Right'),
Key('Book'), Key('Book'),
Key('CD'), Key('CD'),
Key('Calculator'), Key('Calculator'),
Key('ToDoList'), Key('ToDoList', '\u17c0\udccc'), # FIXME
Key('ClearGrab'), Key('ClearGrab', 'Clear Grab'),
Key('Close'), Key('Close'),
Key('Copy'), Key('Copy'),
Key('Cut'), Key('Cut'),
Key('Display'), # Output switch key Key('Display'), # Output switch key
Key('DOS'), Key('DOS'),
Key('Documents'), Key('Documents'),
Key('Excel'), Key('Excel', 'Spreadsheet'),
Key('Explorer'), Key('Explorer', 'Browser'),
Key('Game'), Key('Game'),
Key('Go'), Key('Go'),
Key('iTouch'), Key('iTouch'),
Key('LogOff'), Key('LogOff', 'Logoff'),
Key('Market'), Key('Market'),
Key('Meeting'), Key('Meeting'),
Key('MenuKB'), Key('MenuKB', 'Keyboard Menu'),
Key('MenuPB'), Key('MenuPB', 'Menu PB'),
Key('MySites'), Key('MySites', 'My Sites'),
Key('News'), Key('News'),
Key('OfficeHome'), Key('OfficeHome', 'Home Office'),
Key('Option'), Key('Option'),
Key('Paste'), Key('Paste'),
Key('Phone'), Key('Phone'),
Key('Calendar'), Key('Calendar', '\u17c0\udce4'), # FIXME
Key('Reply'), Key('Reply'),
Key('Reload'), Key('Reload'),
Key('RotateWindows'), Key('RotateWindows', 'Rotate Windows'),
Key('RotationPB'), Key('RotationPB', 'Rotation PB'),
Key('RotationKB'), Key('RotationKB', 'Rotation KB'),
Key('Save'), Key('Save'),
Key('Send'), Key('Send'),
Key('Spell'), Key('Spell', 'Spellchecker'),
Key('SplitScreen'), Key('SplitScreen', 'Split Screen'),
Key('Support'), Key('Support'),
Key('TaskPane'), Key('TaskPane', 'Task Panel'),
Key('Terminal'), Key('Terminal'),
Key('Tools'), Key('Tools'),
Key('Travel'), Key('Travel'),
Key('Video'), Key('Video'),
Key('Word'), Key('Word', 'Word Processor'),
Key('Xfer'), Key('Xfer', 'XFer'),
Key('ZoomIn'), Key('ZoomIn', 'Zoom In'),
Key('ZoomOut'), Key('ZoomOut', 'Zoom Out'),
Key('Away'), Key('Away'),
Key('Messenger'), Key('Messenger'),
Key('WebCam'), Key('WebCam'),
Key('MailForward'), Key('MailForward', 'Mail Forward'),
Key('Pictures'), Key('Pictures'),
Key('Music'), Key('Music'),
Key('Battery'), Key('Battery'),
Key('Bluetooth'), Key('Bluetooth'),
Key('WLAN'), Key('WLAN', 'Wireless'),
Key('UWB'), Key('UWB', 'Ultra Wide Band'),
Key('AudioForward'), # Media fast-forward Key('AudioForward', 'Media Fast Forward'),
Key('AudioRepeat'), # Toggle repeat mode Key('AudioRepeat', 'Audio Repeat'), # Toggle repeat mode
Key('AudioRandomPlay'), # Toggle shuffle mode Key('AudioRandomPlay', 'Audio Random Play'), # Toggle shuffle mode
Key('Subtitle'), Key('Subtitle'),
Key('AudioCycleTrack'), Key('AudioCycleTrack', 'Audio Cycle Track'),
Key('Time'), Key('Time'),
Key('Hibernate'), Key('Hibernate'),
Key('View'), Key('View'),
Key('TopMenu'), Key('TopMenu', 'Top Menu'),
Key('PowerDown'), Key('PowerDown', 'Power Down'),
Key('Suspend'), Key('Suspend'),
Key('ContrastAdjust'), Key('ContrastAdjust', '\u17c0\udd0d'), # FIXME
Key('LaunchG'), Key('LaunchG', '\u17c0\udd0e'), # FIXME
Key('LaunchH'), Key('LaunchH', '\u17c0\udd0f'), # FIXME
Key('TouchpadToggle'), Key('TouchpadToggle', 'Touchpad Toggle'),
Key('TouchpadOn'), Key('TouchpadOn', 'Touchpad On'),
Key('TouchpadOff'), Key('TouchpadOff', 'Touchpad Off'),
Key('MicMute'), Key('MicMute', 'Microphone Mute'),
Key('Red'), Key('Red'),
Key('Green'), Key('Green'),
Key('Yellow'), Key('Yellow'),
Key('Blue'), Key('Blue'),
Key('ChannelUp'), Key('ChannelUp', 'Channel Up'),
Key('ChannelDown'), Key('ChannelDown', 'Channel Down'),
Key('Guide'), Key('Guide'),
Key('Info'), Key('Info'),
Key('Settings'), Key('Settings'),
Key('MicVolumeUp'), Key('MicVolumeUp', 'Microphone Volume Up'),
Key('MicVolumeDown'), Key('MicVolumeDown', 'Microphone Volume Down'),
Key('New'), Key('New'),
Key('Open'), Key('Open'),
@ -528,7 +530,7 @@ KEYS = [
Key('Undo'), Key('Undo'),
Key('Redo'), Key('Redo'),
Key('MediaLast'), Key('MediaLast', '\u17ff\udfff'), # FIXME
### Keypad navigation keys ### Keypad navigation keys
Key('Select'), Key('Select'),
@ -555,12 +557,12 @@ KEYS = [
Key('Call'), # set absolute state to in a call (do not toggle state) Key('Call'), # set absolute state to in a call (do not toggle state)
Key('Hangup'), # set absolute state to hang up (do not toggle state) Key('Hangup'), # set absolute state to hang up (do not toggle state)
Key('Flip'), Key('Flip'),
Key('ToggleCallHangup'), # a toggle key for answering, or hanging up, based on current call state Key('ToggleCallHangup', 'Toggle Call/Hangup'), # a toggle key for answering, or hanging up, based on current call state
Key('VoiceDial'), Key('VoiceDial', 'Voice Dial'),
Key('LastNumberRedial'), Key('LastNumberRedial', 'Last Number Redial'),
Key('Camera'), Key('Camera', 'Camera Shutter'),
Key('CameraFocus'), Key('CameraFocus', 'Camera Focus'),
Key('unknown'), Key('unknown', ''), # FIXME
] ]