packagecontrol.io icon indicating copy to clipboard operation
packagecontrol.io copied to clipboard

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

Open math2001 opened this issue 9 years ago • 1 comments

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 avatar Sep 28 '16 12:09 math2001

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()
	}
})

math2001 avatar Mar 04 '17 21:03 math2001