Skip to content
Snippets Groups Projects
Commit 0914313d authored by Lyle Johnson's avatar Lyle Johnson
Browse files

Corrected a bug in the addAccel() with lambdas impl

parent 70f46987
No related branches found
No related tags found
No related merge requests found
......@@ -28,15 +28,15 @@ module Fox
tgt.pconnect(SEL_KEYPRESS, args[0])
else
tgt = args[0]
if args.length > 1
if args[1].respond_to? :call
tgt = tgt || FXPseudoTarget.new
selup = FXSEL(SEL_KEYRELEASE, 0)
tgt.pconnect(SEL_KEYRELEASE, args[1])
else
seldn = args[1]
selup = args[2] if args.length > 2
end
end
if args.length > 1
if args[1].respond_to? :call
tgt = tgt || FXPseudoTarget.new
selup = FXSEL(SEL_KEYRELEASE, 0)
tgt.pconnect(SEL_KEYRELEASE, args[1])
else
seldn = args[1]
selup = args[2] if args.length > 2
end
end
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment