6

Facebook wants me to use their own set of keyboard shortcuts for navigating their site, but these don't play that well with my Pentadactyl setup. How can I prevent Facebook from hijacking my keys, so I can use what I'm comfortable with?

luxbock
  • 61

2 Answers2

6

Correct me if I'm misunderstanding something about your question, but by default any shortcuts or key bindings that a website has are disabled by Pentadactyl and only Pentadactyl commands apply.

But an essential "trick" is to switch into pass through mode by typing <C-z> (hold down control and type z). This will allow you use the shortcuts and keybindings that the website defined. Then you just hit <escape> to go back to normal mode.

A slight variation on this is the <C-v> command which will pass only the next key press through to the website.

3

To add to Eric Mathison's answer above: You can configure Pentadactyl to remember that you want to use pass-through mode for any specific website using an autocommand. For example, to configure pass-through mode for anything from Facebook's domain, just issue this command:

:au LocationChange facebook.com :normal! <C-z>  

This tells Pentadactyl to enter pass-through mode every time you navigate to any site at facebook.com or switch to a tab in which it is open. To read more about autocommands (and the events you can use to trigger them), type :help autocommands; to see examples type :help autocmd-examples.

popl
  • 31