@@ -314,9 +314,9 @@ export class KeybindingRegistry {
314314 * @param keybinding the keybinding
315315 * @param separator the separator to be used to stringify {@link KeyCode}s that are part of the {@link KeySequence}
316316 */
317- acceleratorFor ( keybinding : common . Keybinding , separator : string = ' ' ) : string [ ] {
317+ acceleratorFor ( keybinding : common . Keybinding , separator : string = ' ' , asciiOnly = false ) : string [ ] {
318318 const bindingKeySequence = this . resolveKeybinding ( keybinding ) ;
319- return this . acceleratorForSequence ( bindingKeySequence , separator ) ;
319+ return this . acceleratorForSequence ( bindingKeySequence , separator , asciiOnly ) ;
320320 }
321321
322322 /**
@@ -325,8 +325,8 @@ export class KeybindingRegistry {
325325 * @param keySequence the keysequence
326326 * @param separator the separator to be used to stringify {@link KeyCode}s that are part of the {@link KeySequence}
327327 */
328- acceleratorForSequence ( keySequence : KeySequence , separator : string = ' ' ) : string [ ] {
329- return keySequence . map ( keyCode => this . acceleratorForKeyCode ( keyCode , separator ) ) ;
328+ acceleratorForSequence ( keySequence : KeySequence , separator : string = ' ' , asciiOnly = false ) : string [ ] {
329+ return keySequence . map ( keyCode => this . acceleratorForKeyCode ( keyCode , separator , asciiOnly ) ) ;
330330 }
331331
332332 /**
@@ -337,7 +337,9 @@ export class KeybindingRegistry {
337337 * @param asciiOnly if `true`, no special characters will be substituted into the string returned. Ensures correct keyboard shortcuts in Electron menus.
338338 */
339339 acceleratorForKeyCode ( keyCode : KeyCode , separator : string = ' ' , asciiOnly = false ) : string {
340- return this . componentsForKeyCode ( keyCode , asciiOnly ) . join ( separator ) ;
340+ const accelerator = this . componentsForKeyCode ( keyCode , asciiOnly ) . join ( separator ) ;
341+ console . log ( 'SENTINEL FOR GETTING AN ACCELERATOR' , accelerator , new Error ( ) ) ;
342+ return accelerator ;
341343 }
342344
343345 componentsForKeyCode ( keyCode : KeyCode , asciiOnly = false ) : string [ ] {
0 commit comments