lib/ruco/keyboard.rb in ruco-0.0.11 vs lib/ruco/keyboard.rb in ruco-0.0.12
- old
+ new
@@ -18,19 +18,18 @@
when Curses::KEY_PPAGE then :page_up
# modify
when 9 then :tab
when 13 then :enter # shadows Ctrl+m
- when 32..126 then key # printable
when 263, 127 then :backspace # ubuntu / mac
when Curses::KEY_DC then :delete
# misc
when 0 then :"Ctrl+space"
when 1..26 then :"Ctrl+#{A_TO_Z[key-1]}"
when 27 then :escape
else
- key
+ key.chr # printable
end
yield code
end
end
\ No newline at end of file