pqrs-org / Karabiner-Elements

Karabiner-Elements is a powerful utility for keyboard customization on macOS Sierra (10.12) or later.
https://pqrs.org/osx/karabiner/
The Unlicense
18.82k stars 838 forks source link

Does karabiner-elements support the event 'Move Focus To Next Window'? #3681

Open bigface008 opened 10 months ago

bigface008 commented 10 months ago

Hello, I'm wondering if Karabiner-Elements supports the event 'Move Focus To Next Window'. If it is supported, what is the corresponding keycodes? I didn't find a corresponding keycode in this link.

PS: 'Move Focus To Next Window' means switching between different windows between the same application. The original shortcut is command+`.

kg-currenxie commented 9 months ago

unless someone can answer this specifically, and if you need this functionality now, you can do this with Hammerspoon

like this :)

function move_tab_to_new_window()
  return function()
    app = hs.application.frontmostApplication()
    app:selectMenuItem("Move Tab to New Window")
  end
end

hs.hotkey.bind({"alt", "cmd"}, "pad2", move_tab_to_new_window())