unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Jason Rumney <jasonr@gnu.org>
Cc: Eli Zaretskii <eliz@gnu.org>, emacs-devel@gnu.org
Subject: Re: w32-pass-lwindow-to-system does not work as expected
Date: Wed, 06 Jul 2005 08:08:58 +0100	[thread overview]
Message-ID: <uk6k4qulx.fsf@jasonrumney.net> (raw)
In-Reply-To: <42CB0D00.3030900@student.lu.se> (Lennart Borgman's message of "Wed, 06 Jul 2005 00:43:12 +0200")

Lennart Borgman <lennart.borgman.073@student.lu.se> 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.

  reply	other threads:[~2005-07-06  7:08 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-07-05 19:14 w32-pass-lwindow-to-system does not work as expected Lennart Borgman
2005-07-05 19:30 ` Juanma Barranquero
2005-07-05 19:42   ` Lennart Borgman
2005-07-05 19:53     ` Juanma Barranquero
2005-07-05 20:06       ` Lennart Borgman
2005-07-05 22:17         ` Juanma Barranquero
2005-07-05 22:24           ` Lennart Borgman
2005-07-05 21:04       ` Jason Rumney
2005-07-05 22:11         ` Juanma Barranquero
2005-07-05 19:36 ` Jason Rumney
2005-07-05 19:56   ` Lennart Borgman
2005-07-05 21:08     ` Jason Rumney
2005-07-05 21:22       ` Lennart Borgman
2005-07-05 21:34 ` Eli Zaretskii
2005-07-05 20:54   ` Lennart Borgman
2005-07-06  4:43     ` Eli Zaretskii
2005-07-06  6:54       ` Lennart Borgman
2005-07-06 18:51         ` Eli Zaretskii
2005-07-06 18:23           ` Lennart Borgman
2005-07-05 22:43   ` Lennart Borgman
2005-07-06  7:08     ` Jason Rumney [this message]
  -- strict thread matches above, loose matches on Subject: below --
2005-07-06  8:36 LENNART BORGMAN

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=uk6k4qulx.fsf@jasonrumney.net \
    --to=jasonr@gnu.org \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).