Skip to content
Merged
Show file tree
Hide file tree
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
4 changes: 4 additions & 0 deletions modules/web/src/main/ui/help.scala
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ object help:
private def flip(using Translate) = row(kbd("f"), trans.site.flipBoard())
private def zen(using Translate) = row(kbd("z"), trans.preferences.zenMode())
private def helpDialog(using Translate) = row(kbd("?"), trans.site.showHelpDialog())
private def menu(using Translate) = row(kbd("h"), trans.site.menu())
private def localAnalysis(using Translate) = frag(
row(kbd("l"), trans.site.toggleLocalAnalysis()),
row(kbd("space"), trans.site.playComputerMove()),
Expand All @@ -53,6 +54,7 @@ object help:
hasChat.option(
row(kbd("c"), trans.site.focusChat())
),
menu,
helpDialog
)
)
Expand All @@ -69,6 +71,7 @@ object help:
header(trans.site.other()),
flip,
zen,
menu,
helpDialog
)
)
Expand Down Expand Up @@ -106,6 +109,7 @@ object help:
row(kbd("c"), trans.site.focusChat()),
helpDialog,
row(kbd("e"), trans.site.openingEndgameExplorer()),
menu,
row(
frag(kbd("shift"), kbd("space")),
trans.site.playFirstOpeningEndgameExplorerMove()
Expand Down
4 changes: 4 additions & 0 deletions ui/analyse/src/keyboard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ export const bind = (ctrl: AnalyseCtrl) => {
if (ctrl.study?.practice) return;

kbd
.bind('h', () => {
ctrl.toggleActionMenu();
ctrl.redraw();
})
.bind('f', ctrl.flip)
.bind('?', () => {
ctrl.keyboardHelp = !ctrl.keyboardHelp;
Expand Down
3 changes: 2 additions & 1 deletion ui/botPlay/src/play/keyboard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@ export default function keyboard(ctrl: PlayCtrl): void {
.bind(['up', '0', 'home'], () => ctrl.goTo(0))
.bind(['down', '$', 'end'], () => ctrl.goToLast())
.bind('z', () => pubsub.emit('zen'))
.bind('f', ctrl.flip);
.bind('f', ctrl.flip)
.bind('h', () => ctrl.menu.toggle());
}
3 changes: 2 additions & 1 deletion ui/puzzle/src/keyboard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ export default (ctrl: PuzzleCtrl) =>
.bind('z', () => pubsub.emit('zen'))
.bind('?', () => ctrl.keyboardHelp(!ctrl.keyboardHelp()))
.bind('f', ctrl.flip)
.bind('n', ctrl.nextPuzzle);
.bind('n', ctrl.nextPuzzle)
.bind('h', ctrl.menu.toggle);

export const view = (ctrl: PuzzleCtrl) =>
snabDialog({
Expand Down
3 changes: 2 additions & 1 deletion ui/round/src/keyboard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ export const init = (ctrl: RoundController): LichessMousetrap =>
.bind('?', () => {
ctrl.keyboardHelp = !ctrl.keyboardHelp;
ctrl.redraw();
});
})
.bind('h', ctrl.menu.toggle);

export const view = (ctrl: RoundController): VNode =>
snabDialog({
Expand Down