Hi,

On 19.11.2012 23:50, Manuel Kasser wrote:
> On 19.11.2012, 21:37, Uli Schlachter wrote:
>> Works for me. I wrote the following into a terminal, pressed "enter" and a 
>> new
>> space got entered".
>>
>> $ echo 'root.fake_input("key_press", 65) root.fake_input("key_release", 65)' 
>> |
>> awesome-client
> Thank you, that indeed helped me, because it worked for me too in a
> terminal. So I searched somwhere else and found out that my non-working
> function works when I bind the function to a mouse-button via the
> clientbuttons-table.
> But doesn't work when I bind it to modkey+F2 or modkey via the
> clientkeys-table. It is exact the same function, it works on a
> mouse-button-bind but doesn't on a keybind.
[...]

How about using

 awful.key({ modkey }, "F2", nil, experiment)

This passes in nil as the callback for when F2 is pressed and experiment for
when it is released.

(I guess that the problem is that awesome grabs the keyboard when you press a
keybinding, thus all following key events get sent to awesome and not your 
terminal)

Uli
-- 
- Captain, I think I should tell you I've never
  actually landed a starship before.
- That's all right, Lieutenant, neither have I.

-- 
To unsubscribe, send mail to [email protected].

Reply via email to