diff --git a/docs/src/assets/js/playground.js b/docs/src/assets/js/playground.js index aa0cc738..73675f72 100644 --- a/docs/src/assets/js/playground.js +++ b/docs/src/assets/js/playground.js @@ -134,8 +134,9 @@ window.initializePlayground = async (opts) => { }); codeEditor.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 } });