wbond / packagecontrol.io

The Package Control website
https://packagecontrol.io
Other
111 stars 46 forks source link

preventDefault on ctrl+shift+p, and tabindex=0 to get the focus first #87

Open math2001 opened 7 years ago

math2001 commented 7 years ago

Hello!

I'm using package control, and it's really great, thank you so much for creating and maintaining it!

But, there's a really simple problem, here's the issue #28. So I just made 2 changes:

  1. add e.preventDefault()
  2. set the tabindex to 0

I haven't test it, because I can't, but it should work

Have a nice day, Matt

math2001 commented 7 years ago

Since it's been a while, and nothing has happen, here's an alternative:

use an extension like User JavaScript And CSS and add this code:

document.addEventListener('keydown', function (e) {
    if (e.shiftKey && e.ctrlKey && e.keyCode == 80) {
        e.preventDefault()
    }
})