jaywcjlove / hotkeys-js

➷ A robust Javascript library for capturing keyboard input. It has no dependencies.
https://jaywcjlove.github.io/hotkeys-js
MIT License
6.61k stars 406 forks source link

command+shift+] doesn't work on mac #435

Closed denis-mnml closed 1 year ago

denis-mnml commented 1 year ago

Hi there :)

"command+shift+]" and "command+shift+[" doesn't work on mac. Tested in chrome and safari. "ctrl+shift+]" and "ctrl+shift+[" work well.

You can try this https://wangchujiang.com/hotkeys-js/

jaywcjlove commented 1 year ago

https://codepen.io/jaywcjlove/pen/gOQGxOO?editors=0010

@denis-mnml I tested it and it conflicts with browser shortcuts. Currently I don't know of any good solution.

denis-mnml commented 1 year ago

@jaywcjlove It is a pity that this cannot be circumvented using e.preventDefault() or e.stopPropagation(). I hope there will be an opportunity to get around this soon.