#1315: ScriptingBridge with SystemEvents maps keyCodes on crack and performSelector is wonky -----------------------------+---------------------------------------------- Reporter: rob@… | Owner: lsansonetti@… Type: defect | Status: new Priority: major | Milestone: Component: MacRuby | Keywords: ScriptingBridge, keycodes -----------------------------+---------------------------------------------- {{{ framework 'Foundation' framework 'ScriptingBridge' system = SBApplication.applicationWithBundleIdentifier("com.apple.SystemEvents") system.send(:"keystroke:using:", "t", 0) # `t` is typed as keystroke # system.send(:"keyCode:using:", 17, 0) # `t` is typed as keyCode # unicode for t is 0074, ascii for t is 116 system.performSelector(:'keyCode:using:', keyCode:17, using:0) # Completely random! }}} What's going on here guys? -- Ticket URL: <http://www.macruby.org/trac/ticket/1315> MacRuby <http://macruby.org/>