theRealProHacker / Positron

With Positron you can create your own desktop app using just HTML and Python
2 stars 1 forks source link

The `accesskey` HTML attribute #63

Closed theRealProHacker closed 1 year ago

theRealProHacker commented 1 year ago

The accesskey on an Element registers a callback when the key is pressed while modified with some predefined modifier and "clicks" the element. Pressing the key down and releasing it is equivalent to pressing down the primary mouse button and releasing it on the element.

theRealProHacker commented 1 year ago

Will only implement on explicit request. Instead, developers should create an event handler that manually clicks the element depending on the key.

There is an example on how to implement this