GNU bug report logs - #44456
Windows10 doesn't allow either windows keys as hyper?

Previous Next

Package: emacs;

Reported by: Steve Greenburg <beethoven3322 <at> hotmail.com>

Date: Wed, 4 Nov 2020 23:04:01 UTC

Severity: normal

Tags: notabug

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 44456 in the body.
You can then email your comments to 44456 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#44456; Package emacs. (Wed, 04 Nov 2020 23:04:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Steve Greenburg <beethoven3322 <at> hotmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Wed, 04 Nov 2020 23:04:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Steve Greenburg <beethoven3322 <at> hotmail.com>
To: "bug-gnu-emacs <at> gnu.org" <bug-gnu-emacs <at> gnu.org>
Subject: Windows10 doesn't allow either windows keys as hyper?
Date: Wed, 4 Nov 2020 21:44:37 +0000
[Message part 1 (text/plain, inline)]
Apparently this is a known issue for a while. I'm on 27.1 right now on windows and the following code allows me to use the menu key as hyper:

(setq w32-pass-apps-to-system nil)
(setq w32-apps-modifier 'hyper)

However neither of the lwindows or rwindows versions work.

(setq w32-pass-rwindows-to-system nil)
(setq w32-rwindows-modifier 'hyper)

I'm not sure what key to use for Hyper in general. Ideally it would be something that wouldn't interfere too much with windows or ubuntu desktop shortcut keys, and unfortunately a lot of those use the Win/Super key. Caps_Lock for that would be nice. Is there a way around this problem?


[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#44456; Package emacs. (Thu, 05 Nov 2020 13:36:02 GMT) Full text and rfc822 format available.

Message #8 received at 44456 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Steve Greenburg <beethoven3322 <at> hotmail.com>
Cc: 44456 <at> debbugs.gnu.org
Subject: Re: bug#44456: Windows10 doesn't allow either windows keys as hyper?
Date: Thu, 05 Nov 2020 15:35:03 +0200
tags 44456 notabug
thanks

> From: Steve Greenburg <beethoven3322 <at> hotmail.com>
> Date: Wed, 4 Nov 2020 21:44:37 +0000
> 
> Apparently this is a known issue for a while. I'm on 27.1 right now on windows and the following code allows
> me to use the menu key as hyper:
> 
> (setq w32-pass-apps-to-system nil)
> (setq w32-apps-modifier 'hyper)
> 
> However neither of the lwindows or rwindows versions work.
> 
> (setq w32-pass-rwindows-to-system nil)
> (setq w32-rwindows-modifier 'hyper)

On Windows 10 you must also use w32-register-hot-key, or the above
won't work.  Read all about this in the node "Windows Keyboard" of the
Emacs user manual, which also shows a couple of examples.

There's no bug here, AFAICT.




Added tag(s) notabug. Request was from Eli Zaretskii <eliz <at> gnu.org> to control <at> debbugs.gnu.org. (Thu, 05 Nov 2020 13:36:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#44456; Package emacs. (Thu, 05 Nov 2020 16:55:01 GMT) Full text and rfc822 format available.

Message #13 received at 44456 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Steve Greenburg <beethoven3322 <at> hotmail.com>
Cc: 44456 <at> debbugs.gnu.org
Subject: Re: bug#44456: Windows10 doesn't allow either windows keys as hyper?
Date: Thu, 05 Nov 2020 18:54:45 +0200
> From: Steve Greenburg <beethoven3322 <at> hotmail.com>
> CC: "44456 <at> debbugs.gnu.org" <44456 <at> debbugs.gnu.org>
> Date: Thu, 5 Nov 2020 16:48:12 +0000
> 
> I believe it's still a bug because I can't get the left windows key to function as hyper without first making it
> function as super. Thus if I execute the following code I get nothing:
> 
> (setq w32-lwindow-modifier 'hyper)
> (setq w32-pass-lwindow-to-system nil)
> (w32-register-hot-key [h-])

The Hyper modifier is [H-], not [h-].  Does H- work for you?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#44456; Package emacs. (Thu, 05 Nov 2020 16:59:02 GMT) Full text and rfc822 format available.

Message #16 received at 44456 <at> debbugs.gnu.org (full text, mbox):

From: Steve Greenburg <beethoven3322 <at> hotmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: "44456 <at> debbugs.gnu.org" <44456 <at> debbugs.gnu.org>
Subject: Re: bug#44456: Windows10 doesn't allow either windows keys as hyper?
Date: Thu, 5 Nov 2020 16:48:12 +0000
[Message part 1 (text/plain, inline)]
I believe it's still a bug because I can't get the left windows key to function as hyper without first making it function as super. Thus if I execute the following code I get nothing:

(setq w32-lwindow-modifier 'hyper)
(setq w32-pass-lwindow-to-system nil)
(w32-register-hot-key [h-])

but if I execute the following code first then the above I do get left windows behaving as Hyper.

(setq w32-lwindow-modifier 'super)
(setq w32-pass-lwindow-to-system nil)
(w32-register-hot-key [s-])

[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#44456; Package emacs. (Thu, 05 Nov 2020 17:06:02 GMT) Full text and rfc822 format available.

Message #19 received at 44456 <at> debbugs.gnu.org (full text, mbox):

From: Steve Greenburg <beethoven3322 <at> hotmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: "44456 <at> debbugs.gnu.org" <44456 <at> debbugs.gnu.org>
Subject: Re: bug#44456: Windows10 doesn't allow either windows keys as hyper?
Date: Thu, 5 Nov 2020 17:05:10 +0000
[Message part 1 (text/plain, inline)]
The documentation for w32-register-hotkey says it is [h-] so I used that. Using [H-] does work as long as I change the variable before calling w32-register-hot-key like so:

(setq w32-lwindow-modifier 'hyper)
(w32-register-hot-key [H-])
(setq w32-pass-lwindow-to-system nil)

Thanks.

________________________________
From: Eli Zaretskii <eliz <at> gnu.org>
Sent: Thursday, November 5, 2020 4:54 PM
To: Steve Greenburg <beethoven3322 <at> hotmail.com>
Cc: 44456 <at> debbugs.gnu.org <44456 <at> debbugs.gnu.org>
Subject: Re: bug#44456: Windows10 doesn't allow either windows keys as hyper?

> From: Steve Greenburg <beethoven3322 <at> hotmail.com>
> CC: "44456 <at> debbugs.gnu.org" <44456 <at> debbugs.gnu.org>
> Date: Thu, 5 Nov 2020 16:48:12 +0000
>
> I believe it's still a bug because I can't get the left windows key to function as hyper without first making it
> function as super. Thus if I execute the following code I get nothing:
>
> (setq w32-lwindow-modifier 'hyper)
> (setq w32-pass-lwindow-to-system nil)
> (w32-register-hot-key [h-])

The Hyper modifier is [H-], not [h-].  Does H- work for you?
[Message part 2 (text/html, inline)]

Reply sent to Eli Zaretskii <eliz <at> gnu.org>:
You have taken responsibility. (Thu, 05 Nov 2020 17:49:02 GMT) Full text and rfc822 format available.

Notification sent to Steve Greenburg <beethoven3322 <at> hotmail.com>:
bug acknowledged by developer. (Thu, 05 Nov 2020 17:49:02 GMT) Full text and rfc822 format available.

Message #24 received at 44456-done <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Steve Greenburg <beethoven3322 <at> hotmail.com>
Cc: 44456-done <at> debbugs.gnu.org
Subject: Re: bug#44456: Windows10 doesn't allow either windows keys as hyper?
Date: Thu, 05 Nov 2020 19:47:50 +0200
> From: Steve Greenburg <beethoven3322 <at> hotmail.com>
> CC: "44456 <at> debbugs.gnu.org" <44456 <at> debbugs.gnu.org>
> Date: Thu, 5 Nov 2020 17:05:10 +0000
> 
> The documentation for w32-register-hotkey says it is [h-] so I used
> that.

I fixed the documentation, thanks.

> Using [H-] does work as long as I
> change the variable before calling w32-register-hot-key like so:
> 
> (setq w32-lwindow-modifier 'hyper) 
> (w32-register-hot-key [H-])
> (setq w32-pass-lwindow-to-system nil)

That's okay, the manual and the doc string indeed say this should be
the order: first set w32-l/rwindow-modifier, then call
w32-register-hot-key.

With this, I'm closing the bug report.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 04 Dec 2020 12:24:06 GMT) Full text and rfc822 format available.

This bug report was last modified 4 years and 200 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.