components/help: remove "/" keybinding, document middle mouse click

This commit is contained in:
Simon Ser 2022-01-09 19:20:44 +01:00
parent 690845c2af
commit 5e34067d38

View file

@ -26,14 +26,14 @@ function KeyBindingsHelp() {
`; `;
}); });
return html` if (!window.matchMedia("(pointer: none)").matches) {
<dl> l.push(html`
<dt><kbd>/</kbd></dt> <dt><strong>Middle mouse click</strong></dt>
<dd>Start writing a command</dd> <dd>Close buffer</dd>
`);
}
${l} return html`<dl>${l}</dl>`;
</dl>
`;
} }
function CommandsHelp() { function CommandsHelp() {