which will not work in red shoes under the windows, as Windows controllers will steal all events. I managed to get it at work in green shoes under the windows.
Here is an example
['green_shoes'].each(&method(:require)) Shoes.app{ e = edit_line button("Click me!"){alert("You clicked me.")} keypress { |k| alert("You pressed Enter") if k == "\n"} }
Grtz
peter source share