Skip to content

Commit

Permalink
Support Enter key of numpad on Windows
Browse files Browse the repository at this point in the history
The yamatanooroti gem can't emulate numpad key pressing...
  • Loading branch information
aycabta committed Jul 20, 2021
1 parent d7fc111 commit 8e9da1a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/reline/windows.rb
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,8 @@ def self.process_key_event(repeat_count, virtual_key_code, virtual_scan_code, ch
@@output_buf.push(0, 80)
when VK_DELETE
@@output_buf.push(0, 83)
when VK_RETURN
@@output_buf.push(char_code) # must be 0x0D
end
elsif char_code == 0 and control_key_state != 0
# unknown
Expand Down

0 comments on commit 8e9da1a

Please sign in to comment.