Lennart Borgman <[EMAIL PROTECTED]> writes:

> *** Removing the low level keyboard hook at the main thread tear down:
> UnhookWindowsHookEx(hLowKBhook);

You also need to remove the hook whenever Emacs crashes. That is more
difficult, and the reason why I would be reluctant to start playing
with Low Level hooks within Emacs.

>                     case VK_LWIN:
>                     {
>                         // the user pressed the <lwindow> key
>                       if (!NILP (Vw32_pass_lwindow_to_system))
>                         fHandled = TRUE;
>                         break;
>                     }
>                 }
>         }
>     }
>
>     return (fHandled ? TRUE : CallNextHookEx(hhook, nCode, wParam, lParam));

If my reading of the docs is correct, this will prevent Emacs from
seeing lwindow keys altogether. If you return true from a low level
keyboard hook, you must handle the key inside the hook. Since you want
to use lwindow as a modifier key, you'll then need to handle all the
keys that it modifies in the hook as well, and you'll end up doing all
your own keyboard mapping, as Eli said.


_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-devel

Reply via email to