baseview icon indicating copy to clipboard operation
baseview copied to clipboard

Add the active keyboard modifiers to the mouse events

Open robbert-vdh opened this issue 3 years ago • 1 comments

This builds on top of #115, so I marked this as a draft until that has been merged.

Every mouse event now has a modifier field containing the current keyboard modifiers. Most window management APIs work like this, and it solves things like #116 by making sure that whenever a window receives a mouse event, it also knows the up to date keyboard modifier status.

I tested this on Linux with the project mentioned in #116. It should also work without issues on Windows though, and I've never touched macOS code before but it compiles and looks fine so I'm sure it also works there.

robbert-vdh avatar Feb 09 '22 17:02 robbert-vdh

I've rebased this on the master branch now that #115 has been merged.

robbert-vdh avatar Mar 07 '22 18:03 robbert-vdh