Skip to content

Commit

Permalink
add numpad-enter key #212
Browse files Browse the repository at this point in the history
  • Loading branch information
joneugster committed Apr 17, 2024
1 parent 848b2cd commit 62f1fb8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/src/components/infoview/typewriter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
})
Expand Down

0 comments on commit 62f1fb8

Please sign in to comment.