Skip to content

Commit

Permalink
Hook in building shortcut table each time the info view is opened.
Browse files Browse the repository at this point in the history
Does not yet actually build anything, just logs.

Issue #130.

␄
  • Loading branch information
Mike Castle committed Oct 27, 2023
1 parent 68ac030 commit ac0ce91
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions linkedin-tool.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -4249,6 +4249,7 @@
#onOpenInfo = () => {
VMKeyboardService.setKeyboardContext('inDialog', true);
this.#infoKeyboard.enable();
this.#buildShortcutsInfo();
this.logger.log('info opened');
}

Expand Down Expand Up @@ -4424,6 +4425,18 @@
return tab;
}

#buildShortcutsInfo = () => {
const me = 'buildShortcutsInfo';
this.logger.entered(me);
for (const service of VMKeyboardService.services) {
this.logger.log('service:', service.shortName, service.active);
for (const shortcut of service.shortcuts) {
this.logger.log('shortcut:', shortcut);
}
}
this.logger.leaving(me);
}

/** @inheritdoc */
docTab() {
const me = 'docTab';
Expand Down

0 comments on commit ac0ce91

Please sign in to comment.