Disabling CTRL-P
See original GitHub issueIn insert mode, I sometimes hit CTRL-P when trying to hit CTRL-[ to leave insert mode. Unfortunately, Chrome launches the print dialog if you hit CTRL-P.
Right now I’m using this script as a bookmark to intercept it:
document.addEventListener('keydown', function(event) {
if(event.ctrlKey && event.keyCode == 80) {
event.preventDefault();
}
});
But was wondering if this is something we could integrate into this extension.
Issue Analytics
- State:
- Created 3 years ago
- Comments:5
Top Results From Across the Web
How to prevent ctrlp from indexing $HOME · Issue #560 - GitHub
If i'm in a project, do a quick :e of ~/.vimrc, and then hit ctrl-p, blammo. Everything locks up for 30 seconds. Removing...
Read more >Disabling Ctrl+P in webBrowser control - Stack Overflow
It seems like it's impossible to disable printing in a webBrowser control. This still shows a print dialog when pressing ctrl+p. The behavior...
Read more >Why is `ctrlp` plugin not excluded from loading by including it ...
I want to exclude ctrlp.vim plugin from loading by setting the ... Adding other plugins to pathogen_disabled successfully disables them ...
Read more >Browser default action for CTRL+P cannot be prevented
This article describes that browser default action for CTRL+P cannot be prevented.
Read more >Customizing Vim CtrlP Find - Eggplant Systems and Design
CtrlP is a popular Vim plugin for jumping to files & buffers by typing ... Notice that I'm disabling regexes with the --fixed-strings...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
My idea would be to allow the disabling of these kinds of browser shortcuts. So if someone uses the print shortcut often, they can just leave it on.
Now that we have a real settings file I’m open to re-considering this as an opt-in setting. If anyone wants to have a go at PR for something like this it’s ok to
@
me for a review