Open hiiamboris opened 9 months ago
Having unfocus report the keys that generate the unfocus action (if there are any) would allow a field to know the correct behaviour needed to respond to this change of state.
Use case examples:
My thoughts:
Though in general we may not anticipate some use cases, and the whole idea of fine tuning based on event info is valid.
It seems that pointer & wheel events properly report pushed modifier keys, and key events properly report pushed pointing device buttons. However
time
,moving
,resizing
, probably other events I haven't tested always keep theirflags
empty andctrl?
shift?
down?
etc. flagsfalse
.offset
is also unset for anything but pointer and wheel events.I suggest that View should track these flags state internally and put that state into events for which OS does not provide such info. I also suggest ensuring last known
offset
(relative to the face receiving the event) is reported by keyboard, timer and other events.Use case examples:
over
events fromtime
events when pointer is still but one of the underlying spaces moves, and have to track these flags andoffset
on my ownP.S. On Red level providing
offset
totime
events becomes rather messy, because faces screen offsets are not immediately known.