unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Lennart Borgman <lennart.borgman.073@student.lu.se>
Cc: emacs-devel@gnu.org
Subject: Re: w32-pass-lwindow-to-system does not work as expected
Date: Wed, 06 Jul 2005 20:23:00 +0200	[thread overview]
Message-ID: <42CC2184.4040800@student.lu.se> (raw)
In-Reply-To: <ur7ebojhy.fsf@gnu.org>

Eli Zaretskii wrote:

>The low-level hook you referred to is documented to get scan codes.
>  
>
Yes, scan code AND virtual key codes. I do not mean to process the scan 
codes (I would not dare ;-)

>See also Jason's message: if lwindow is to be used as a modifier, then
>we will have to process other keys in the low-level hook as well.
>  
>
I took a look at how RegisterHotKey was used in Emacs. It post the 
message back as a WM_KEYDOWN with just the virtual key code and no 
modifiers. Could not the same thing be done in the low level hook I have 
suggested? Or is there something I do not know that must be done?

>Unfortunately, in this case, this particular system doesn't want Emacs
>to get at that key and some other special key combinations.  Since
>Emacs users are not the only ones who are pissed off by this
>inflexibility, I'm sure there are lots of small proggies written and
>floating on the Internet that will remap lwindow and other special
>keys such that applications, including Emacs, can receive them.  I say
>let's advise our users to solve their problems outside Emacs, like we
>do on GNU/Linux, where we tell them to use loadkeys and xmodmap.
>  
>
Maybe you are right, but my gut feeling is that users on w32 expect the 
program the use to do this. There are at least some example of code 
doing things similar to my suggestion.

And it looks to me like things have changed over the years. The low 
level keyboard hook I have suggested that we use is not available in 
older versions of ms windows. (If I remember correctly it is available 
from w2k and onwards.)

  reply	other threads:[~2005-07-06 18:23 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 [this message]
2005-07-05 22:43   ` Lennart Borgman
2005-07-06  7:08     ` Jason Rumney
  -- 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=42CC2184.4040800@student.lu.se \
    --to=lennart.borgman.073@student.lu.se \
    --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).