question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

In 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:open
  • Created 3 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
BrendanMartincommented, Jan 6, 2021

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.

0reactions
ianhicommented, Mar 12, 2022

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found