Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

math2001
Copy link

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
Copy link
Author

math2001 commented Mar 4, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant