ModifiersChanged message does not indicate keyboard device_id #1514
Labels
C - needs discussion
Direction must be ironed out
F - question
There's no such thing as a stupid one
S - api
Design and usability
The
modifiers
field inwinit::event::KeyboardInput
is marked as depreciated, and a note in the documentation says that applications should instead handle theModifiersChanged
message (and presumably track the resulting value themselves). However theKeyboardInput
event has adevice_id
field while theModifiersChanged
message does not. Strictly speaking, this is therefore a decrease in functionality.To illustrate, consider a system that has two keyboards attached--which is not so crazy as it sounds when you consider bluetooth keyboards, or special purpose devices. If a modifier key is pressed on one device, conceivably that could be isolated from the other in the prior model. However with the
ModifiersChanged
message pressing any modifier key on any device affects the key input of all other devices.Although this is certainly and edge case, it appears to me to be a bug. Perhaps the
ModifiersChanged
event type should be augmented to include adevice_id
?The text was updated successfully, but these errors were encountered: