Skip to content

Commit 8e9da1a

Browse files
committed
Support Enter key of numpad on Windows
The yamatanooroti gem can't emulate numpad key pressing...
1 parent d7fc111 commit 8e9da1a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/reline/windows.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,8 @@ def self.process_key_event(repeat_count, virtual_key_code, virtual_scan_code, ch
206206
@@output_buf.push(0, 80)
207207
when VK_DELETE
208208
@@output_buf.push(0, 83)
209+
when VK_RETURN
210+
@@output_buf.push(char_code) # must be 0x0D
209211
end
210212
elsif char_code == 0 and control_key_state != 0
211213
# unknown

0 commit comments

Comments
 (0)