Hi,
I did some testing...
table.insert(globalkeys, key({ "Mod1" }, "Shift_L", function ()
> naughty.notify({text="press"}) end, function ()
> naughty.notify({text="release"}) end))
>
Prints press, but doesn't naughtify release. Also breaks all Mod1+Shift
combinations, like M-S-c for close window... When I substitute Shift_L with
p, release works...
So, key press combination of just modifiers works "somehow", but key release
doesn't. In principle, modkeys alone should be bindable as they generate key
events like any other key...
On Tue, Feb 17, 2009 at 10:36 AM, Julien Danjou <[email protected]> wrote:
> Hi,
>
> At 1234820559 time_t, dante4d wrote:
> > is it possible to bind key release events in awesome? I'm not aware of
> that
> > at the moment.
>
> Yes, that's the 4th argument of a key(binding) object:
> key({ modkey }, "Left", keypressfunction, keyreleasefunction)
>
> > Key release is what makes Alt+Shift and Win key work
> > correctly under the M$ O$. I'd like to have bind for alt+shift and also
> > alt+shift+another_keys. I just cannot simply bind alt+shift, because that
> > gets fired everytime I want to press alt+shift+the_other_keys...
>
> You cannot bind Alt+Shift. Alt+Shift are modifiers keys, and they are
> not bindable AFAIK.
>
> Cheers,
> --
> Julien Danjou
> // ᐰ <[email protected]> http://julien.danjou.info
> // 9A0D 5FD9 EB42 22F6 8974 C95C A462 B51E C2FE E5CD
> // Life is life. Lalalalala.
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.9 (GNU/Linux)
>
> iEYEARECAAYFAkmahSkACgkQpGK1HsL☥ 봳佟芴或犿揼零
> /yoAoNlc7ttY4JWCwbPOAuys3nk02xtX
> =yUjE
> -----END PGP SIGNATURE-----
>
>