Closed buster closed 9 years ago
the gtktest example seems running.. i don't know where modifierintent is acutally used, but modifiertype seems to work fine.
I'm not sure if it has been used somewhere in rgtk or in one of the examples... You have something on this @jeremyletang ?
Hey, this seems good for me, is it ready to merge @buster ?
Yes, please merge @jeremyletang :)
Thanks @buster !
I've changed the keys to be "const" instead of static, because matching on the key didn't work with that. Also i've changed the ModifierType enum to bitflags!(), so it can be easily used. I couldn't figure out how to use the ModifierType with the enum...
Could you please review? Especially gtktest.rs shows that now it needs another "use".
Key can not be matched like this: