mirror of
https://github.com/tree-sitter/tree-sitter.git
synced 2026-09-10 07:36:22 -04:00
fix(docs): don't show mdbook help popup when using query editor
This commit is contained in:
parent
7657cc9d35
commit
12a31536e1
|
|
@ -146,8 +146,9 @@ window.initializePlayground = async (opts) => {
|
|||
});
|
||||
|
||||
queryEditor.on('keydown', (_, event) => {
|
||||
if (event.key === 'ArrowLeft' || event.key === 'ArrowRight') {
|
||||
event.stopPropagation(); // Prevent mdBook from going back/forward
|
||||
const key = event.key;
|
||||
if (key === 'ArrowLeft' || key === 'ArrowRight' || key === '?') {
|
||||
event.stopPropagation(); // Prevent mdBook from going back/forward, or showing help
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue