red / REP

Red Enhancement Process
BSD 3-Clause "New" or "Revised" License
11 stars 4 forks source link

WISH: ALL View events to populate their flags properly #161

Open hiiamboris opened 9 months ago

hiiamboris commented 9 months ago

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:

P.S. On Red level providing offset to time events becomes rather messy, because faces screen offsets are not immediately known.

mikeyaunish commented 5 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:

hiiamboris commented 5 months ago

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.