-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Event enhancements in Shoes #384
Comments
We might consider the global event manager would handle keypress multiple keys and modifiers problem #47. Perhaps
|
Going to need some help with OSX: deprecated. I'm starting to really hate that word. |
The good news is that it is not a priority and we might get away with updating the current keypress event. We might want to come up with a use case or stress test because it seems keypress on FreeBSD is working better than on Windows, e.g. some modifier combinations may not be handled on Windows. |
I suspect it's the apple manual entry thats being deprecated. On osx you get 5 modifiers. Internally I'll map to a Shoes C enum and expand shoes_app_click, shoes_app_motion and shoes_app_release with an extra parameter for the enum. For shoes_app_keypress() , osx maps to the 3 that gtk uses. See KEY_STATE macro in config.h. Perhaps, there is an existing way the cmd,ctl,alt or an easy way. |
* Additonal arg (see Tests/events/event1.rb) is an array of with :shift_key and/or :control_key symbols. Should not effect existing scripts that don't expect a fourth * Alt key is swallowd by shoes or gtk themes - not going there * Will effect many widgets with click proc's (image, svg, plot) when I gets to them
Very unlikely. Huge platform and hardware dependencies. Secondly what you think the global event manager does, should it exist, is different from mine. |
* osx clicks callback into shoes like gtk - cosmetic * event handler crashes for minbsd and xmavericks targets works for minlin and xwin7 - same code - major mystery
* tricky - I run afoul of the Shoes timing of events. * if shoes_hash_debug was callable from the gdb command line It might make things a lot easier to debug, Would have to fix those TODO's. Dump an array would be nice, too.
Updating suggested code for Shoes.app do
resize do |width, height|
para "user has resized the window with new size #{width}@#{height}.\n"
# rescale the app accordingly
end
end |
Some enhancements have been suggested in #383 to improve Shoes and empower Shoes users. Let's make a list of desirable events. Add your own suggestion here.
The text was updated successfully, but these errors were encountered: