lib/win32/autogui/input.rb in win32-autogui-0.4.3 vs lib/win32/autogui/input.rb in win32-autogui-0.5.0
- old
+ new
@@ -196,14 +196,14 @@
code = char.unpack('U')[0]
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 '+'
[VK_ADD]
when '='