-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Use the typed enum CefEventFlags for modifiers in keyboard events. #667
Conversation
Sounds reasonable 👍 |
One day I'd like to remove |
I wonder why it isn't a straight cast, as |
That would be my guess. It's one of those that I look at from time to time and think about changing and never do! lol |
I know what you mean 😄 I'll do a PR for it now since I'm in the area. |
Thanks 👍 If it's easier, just push another commit to this branch, it's a trivial change. |
Done. |
Use the typed enum CefEventFlags for modifiers in keyboard events.
Done 😄 |
Cheers 🍻 |
No probs 👍 I was planning on releasing another |
Nope, nothing planned. Just needed to implement keyboard shortcut passing from Chomium -> ToolStrip menus today (e.g. so CTRL+S still fires our File | Save menu, even if the Chromium control has focus) and thought I'd submit this cleanup. We run quite a few functional tests nightly (i.e. automated mouse/keyboard driving of our app, with screenshots between each step) and the recent CefSharp |
Greatly appreciate the feedback 😄 Merged a few bug fixes today, so if you notice anything stability wise if you should let me know that would be great 👍 |
Cef says for the
modifier
field:So I think it is safe to cast the value to the existing
CefEventFlags
enum type.With this PR, I am now able to use the following logic in my app: