Ticket #472: touch screen control panel code.patch

File touch screen control panel code.patch, 2.6 KB (added by coffeekingms, 2 years ago)

this is the patch I've compiled after implementing support for multimedia keys. a few notes: 1. nvda will not speak the volume keys, even though those keys are included in my modifications. 2. there are some aditional keys, such as keys for opening your web browser and launching special applications. these keys are included. 3. you must have speak command keys enabled for this to work.

  • source/keyUtils.py

     
    108108                wx.Yield() 
    109109 
    110110localizedKeyLabels={ 
     111'browser_back': _("previous page"), 
     112'browser_forward': _("next page"), 
     113'browser_refresh': _("refresh page"), 
     114'browser_stop': _("close web browser"), 
     115'browser_search': _("my search page"), 
     116'browser_favorites': _("my favorites"), 
     117'browser_home': _("my home page"), 
     118'volume_mute': _("mute"), 
     119'volume_down': _("decrease volume"), 
     120'volume_up': _("increase volume"), 
     121'extendedmedia_next_track': _("next track"), 
     122'extendedmedia_prev_track': _("previous track"), 
     123'extendedmedia_stop': _("stop"), 
     124'extendedmedia_play_pause':_("play pause"), 
     125'launch_mail': _("launch email"), 
     126'LAUNCH_MEDIA_SELECT': _("launch media player"), 
     127'launch_app1': _("custom applications key one"), 
     128'launch_app2': _("custom applications key two"), 
    111129        'back': _("backspace"), 
    112130        'capital': _("caps lock"), 
    113131        'control': _("ctrl"), 
     
    129147        'extendeddown': _("down arrow"), 
    130148        'extendedapps': _("applications"), 
    131149        'extendednumlock': _("num lock"), 
    132         'extendedsnapshot': _("snapshot"), 
     150        'extendedsnapshot': _("print screen"), 
    133151        'scroll': _("scroll lock"), 
    134152        'left': _("numpad left"), 
    135153        'right': _("numpad right"), 
  • source/vkCodes.py

     
    2727        'SELECT': 41, 
    2828        'RMENU': 165, 
    2929        'SNAPSHOT': 44, 
     30        'BROWSER_BACK': 0xA6, 
     31        'BROWSER_FORWARD': 0xA7, 
     32        'BROWSER_REFRESH': 0xA8, 
     33        'BROWSER_STOP': 0xA9, 
     34        'BROWSER_SEARCH': 0xAA, 
     35        'BROWSER_FAVORITES': 0xAB, 
     36        'BROWSER_HOME': 0xAC, 
     37        'VOLUME_MUTE': 0xAD, 
     38        'VOLUME_DOWN': 0xAE, 
     39        'VOLUME_UP': 0xAF, 
     40        'MEDIA_NEXT_TRACK': 0xB0, 
     41        'MEDIA_PREV_TRACK': 0xB1, 
     42        'MEDIA_STOP': 0xB2, 
     43        'MEDIA_PLAY_PAUSE': 0xB3, 
     44        'LAUNCH_MAIL': 0xB4, 
     45        'LAUNCH_MEDIA_SELECT': 0xB5, 
     46        'LAUNCH_APP1': 0xB6, 
     47        'LAUNCH_APP2': 0xB7, 
    3048        'XBUTTON': 26, 
    3149        'END': 35, 
    3250        'DIVIDE': 111, 
     
    90108} 
    91109 
    92110byCode={ 
     111        0xA6: 'BROWSER_BACK', 
     112        0xA7: 'BROWSER_FORWARD', 
     113        0xA8: 'BROWSER_REFRESH', 
     114        0xA9: 'BROWSER_STOP', 
     115        0xAA: 'BROWSER_SEARCH', 
     116        0xAB: 'BROWSER_FAVORITES', 
     117        0xAC: 'BROWSER_HOME', 
     118        0xAD: 'VOLUME_MUTE', 
     119        0xAE: 'VOLUME_DOWN', 
     120        0xAF: 'VOLUME_UP', 
     121        0xB0: 'MEDIA_NEXT_TRACK', 
     122        0xB1: 'MEDIA_PREV_TRACK', 
     123        0xB2: 'MEDIA_STOP', 
     124        0xB3: 'MEDIA_PLAY_PAUSE', 
     125        0xB4: 'LAUNCH_MAIL', 
     126        0xB5: 'LAUNCH_MEDIA_SELECT', 
     127        0xB6: 'LAUNCH_APP1', 
     128        0xB7: 'LAUNCH_APP2', 
    93129        1: 'LBUTTON', 
    94130        2: 'RBUTTON', 
    95131        3: 'CANCEL',