Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions src/zen/kbs/ZenKeyboardShortcuts.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -650,6 +650,40 @@ class nsZenKeyboardShortcutsLoader {
'zen-compact-mode-shortcut-show-toolbar'
)
);
// Glance mode's KeySet
newShortcutList.push(
new KeyShortcut(
'zen-glance-expand',
'Enter',
'',
'',
'',
'cmd_zenGlanceExpand',
'zen-glance-shortcut-expand'
)
);
newShortcutList.push(
new KeyShortcut(
'zen-glance-split',
'S',
'',
'',
'',
'cmd_zenGlanceSplit',
'zen_glance-shortcut-split'
)
);
newShortcutList.push(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Esc is already a shortcut, purposefully done on the content process. I'd do the same with the other shortcuts

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What content process. were would I need to add 'ESC'ape instead? thanks for the input.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The ESC key is arleady added, im saying that the other shortcuts should be added there as well.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are you referring to this line? The Esc key is hardcoded in this case.

How would you add the other hotkeys while making the hotkeys customiseable in ZenGlanceManager.mjs?

new KeyShortcut(
'zen-glance-close',
'Escape',
'',
'',
'',
'cmd_zenGlanceClose',
'zen-glance-shortcut-close'
)
)

// Workspace shortcuts
for (let i = 10; i > 0; i--) {
Expand Down