add numpad-enter key #212

This commit is contained in:
Jon Eugster
2024-04-17 12:23:53 +02:00
parent 848b2cddc8
commit 62f1fb87d1
@@ -229,7 +229,7 @@ export function Typewriter({disabled}: {disabled?: boolean}) {
if (!oneLineEditor) return
// Run command when pressing enter
const l = oneLineEditor.onKeyUp((ev) => {
if (ev.code === "Enter") {
if (ev.code === "Enter" || ev.code === "NumpadEnter") {
runCommand()
}
})