Skip to content

Commit

Permalink
fix incompatibilty bug for 1.9.2
Browse files Browse the repository at this point in the history
  • Loading branch information
jondot committed Apr 21, 2011
1 parent f045a3d commit 0d89c27
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/terminitor/cores/cmd_core/input.rb
Expand Up @@ -194,11 +194,11 @@ def char_to_virtual_keycode(char)

case char
when '0'..'9'
[code - ?0 + 0x30]
[code - ?0.ord + 0x30]
when 'A'..'Z'
[VK_SHIFT, code]
when 'a'..'z'
[code - ?a + ?A]
[code - ?a.ord + ?A.ord]
when ' '
[code]
when '+'
Expand Down

0 comments on commit 0d89c27

Please sign in to comment.