Keyboard shortcuts like Command + Tab take effect regardless of currently focused applications, but shortcut keys like "Move focus to active or next window" (^F4 by default) are stolen by applications like Emacs or iTerm and do not work on such applications.

How does one make such keyboard shortcuts ("Move focus to active or next window" in my case) work generally regardless of which application you are on?

  • Maybe there's something useful here
    – brasofilo
    Mar 3, 2014 at 11:19

1 Answer 1


You can for example assign "Move focus to active or next window" to control-F19 and then use KeyRemap4MacBook to map control-F4 to control-F19:

<?xml version="1.0"?>
    <autogen>__KeyToKey__ KeyCode::F4, VK_CONTROL | ModifierFlag::NONE, KeyCode::F19, ModifierFlag::CONTROL_L</autogen>
  • hmm, didn't really work for me on keyremap4macbook...
    – OTZ
    Mar 7, 2014 at 12:23

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .