add numpad-enter key #212

pull/251/merge
Jon Eugster 2 years ago
parent 848b2cddc8
commit 62f1fb87d1

@ -229,7 +229,7 @@ export function Typewriter({disabled}: {disabled?: boolean}) {
if (!oneLineEditor) return if (!oneLineEditor) return
// Run command when pressing enter // Run command when pressing enter
const l = oneLineEditor.onKeyUp((ev) => { const l = oneLineEditor.onKeyUp((ev) => {
if (ev.code === "Enter") { if (ev.code === "Enter" || ev.code === "NumpadEnter") {
runCommand() runCommand()
} }
}) })

Loading…
Cancel
Save