Thanks to Pz's help, I have now successfully added a shortcut for Streets Vector Layer.
If you already have the Developer Tools extension installed for your browser, you just need to open it up while in WME and select the tab to view "Resources" > "Local Storage" > http://www.waze.com. There should be a stored variable, keyboardShortcuts, within that list.
The easiest way to get the correct keyCode for your shortcut is to open up the WME shortcuts pane and temporarily assign the desired keys to another event (i.e., use "Keyboard Shortcuts" link in the bottom left of WME or press "?" hotkey). So, if I have no shortcut assigned for the Vector layer and I want to use alt+l, I might temporarily assign those keys to "Toggle Junctions." After the shortcut has been set, I'll go looking for the corresponding key codes for toggleJunctions saved within the long keyboardShortcuts array, copy the two numbers into clipboard, and then remove the shortcut for "Toggle Junctions" by making the values "0,-1"
(i.e., find "toggleJunctions":"4,76", copy "4,76", then edit to "toggleJunctions":"0,-1"). Finally, I paste the copied key codes over to the entry for toggleStreet...: "toggleStreet(Vector)":"4,76",... and reload WME. The keys can be verified by taking a look in the Keyboard Shortcuts pane again. If it looks good there, the new shortcut should now work.
Alternatively, you could also manually find the values for your shortcut with the help of this website: http://www.cambiaresearch.com/articles/ ... -key-codes. The first number must be 0-7 and represents the modifier key(s) and the second number is the associated key press (a letter, number, or a function key).
The key codes for modifier key(s) are:
0 - no modifier key(s)
1 - ctrl
2 - shift
3 - ctrl+shift
4 - alt
5 - ctrl+alt
6 - alt+shift
7 - ctrl+alt+shift
Thus, if you want ctrl+alt+shift+s as the shortcut, you would use ""7,83". 83 is the key code for 's'.
If you already have the Developer Tools extension installed for your browser, you just need to open it up while in WME and select the tab to view "Resources" > "Local Storage" > http://www.waze.com. There should be a stored variable, keyboardShortcuts, within that list.
The easiest way to get the correct keyCode for your shortcut is to open up the WME shortcuts pane and temporarily assign the desired keys to another event (i.e., use "Keyboard Shortcuts" link in the bottom left of WME or press "?" hotkey). So, if I have no shortcut assigned for the Vector layer and I want to use alt+l, I might temporarily assign those keys to "Toggle Junctions." After the shortcut has been set, I'll go looking for the corresponding key codes for toggleJunctions saved within the long keyboardShortcuts array, copy the two numbers into clipboard, and then remove the shortcut for "Toggle Junctions" by making the values "0,-1"
(i.e., find "toggleJunctions":"4,76", copy "4,76", then edit to "toggleJunctions":"0,-1"). Finally, I paste the copied key codes over to the entry for toggleStreet...: "toggleStreet(Vector)":"4,76",... and reload WME. The keys can be verified by taking a look in the Keyboard Shortcuts pane again. If it looks good there, the new shortcut should now work.
Alternatively, you could also manually find the values for your shortcut with the help of this website: http://www.cambiaresearch.com/articles/ ... -key-codes. The first number must be 0-7 and represents the modifier key(s) and the second number is the associated key press (a letter, number, or a function key).
The key codes for modifier key(s) are:
0 - no modifier key(s)
1 - ctrl
2 - shift
3 - ctrl+shift
4 - alt
5 - ctrl+alt
6 - alt+shift
7 - ctrl+alt+shift
Thus, if you want ctrl+alt+shift+s as the shortcut, you would use ""7,83". 83 is the key code for 's'.
Re: [Script][Beta] Street Vector Layer