You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 their flags empty and ctrl?shift?down? etc. flags false. 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:
in Spaces I synthesize over events from time events when pointer is still but one of the underlying spaces moves, and have to track these flags and offset on my own
one could make keys function like pointing device buttons for some customized UX
P.S. On Red level providing offset to time events becomes rather messy, because faces screen offsets are not immediately known.
The text was updated successfully, but these errors were encountered:
hiiamboris
changed the title
WISH: **all** View events to populate their flags properly
WISH: ALL View events to populate their flags properly
Feb 21, 2024
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:
Knowing when the tab key has been pressed during the unfocus action is critical for data validation
Pressing tab and pressing enter at a field needs to be determined to know where the cursor goes next ( similar to spreadsheet behaviour)
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.The text was updated successfully, but these errors were encountered: