Add commonly used attributes to M3 buttons event args

M3 Buttons seem to have taken a step back when it comes to event handling. Non M3 buttons include ‘keys’ in the event arguments, which was quite helpful. The only way to get these values now is to use javascript directly. Can this be added back in to these new M3 buttons?
If the raw event could be included as well, that would be even better.
Original event args from before M3 introduction:

{
  'keys': {
    'meta': False, 
    'shift': True, 
    'ctrl': False, 
    'alt': False
  }, 
  'sender': <anvil.Button object>, 
  'event_name': 'click'
}

Event args from M3 has only ‘sender’ and ‘event_name’.

1 Like