KDE
Você não pode mudar para "clique para focar" no KDE para resolver isso?
Impressionante
EuencontreiesteWikiquediscuteoquepareceseroseuproblemaeofereceuessasoluçãoalternativa.Otópicodowikiéintitulado: Plug-ins de solução que roubam o foco do teclado .
xdotool
There is a very long-standing bug in firefox that allows plugins (Flash, Acrobat, etc) to steal all of the keyboard shortcuts for the window. This is a simple workaround to return the keyboard focus to the top level window:
código
-- Escape from keyboard focus trap (eg Flash plugin in Firefox)
awful.key({ modkey, "Control" }, "Escape", function ()
awful.util.spawn("xdotool getactivewindow mousemove --window %1 0 0 click --clearmodifiers 2")
end),
OBSERVAÇÃO: essa solução alternativa requer que o xdotool
esteja instalado.
mova o mouse
For example, use Move Mouse to move mouse pointer to a safe location (any area with no links or embedded Flash elements), then call the function below to simulate a mouse click (that brings the focus back).
código
-- Simulate mouse click
local function simulateClick()
root.fake_input("button_press", 1)
root.fake_input("button_release", 1)
end
-- Bind it to a key
awful.key({ modkey, }, "n", function() simulateClick() end),
Referências