flowforfrank / webtips

https://webtips.dev
1 stars 0 forks source link

webtips/html/how-to-add-keyboard-shortcut-to-elements #24

Open utterances-bot opened 1 year ago

utterances-bot commented 1 year ago

How to Add Keyboard Shortcut to Elements in HTML - Webtips

You can add keyboard shortcuts to your page through HTML with the global accesskey attribute. However, this may surface some problems...

https://www.webtips.dev/webtips/html/how-to-add-keyboard-shortcut-to-elements?utterances=eb20a4fccf2e5ece1f982b1eegYlDWP9bb8TAzR4uNuTGxoKttMlHA%2BpO4ri68m%2BnKPCUNzLlUNkaKaWZB2LSWsi1Lv%2FAHFo%2BNvGCBCAAxytIV2eMsWNeDk1r1HUBZp1DXNQ7QmuGwJSAcKFI4g%3D

Jameswilliam1122 commented 1 year ago

Where and how to add this code in Chrome?

flowforfrank commented 1 year ago

Where and how to add this code in Chrome?

Hey @Jameswilliam1122, You need to add this to your HTML markup from a code editor. I recommend using VSCode. Once added, the shortcut will be available automatically in your browser. You can try the behavior on this page, using the "H" and "C" keys.