unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#44456: Windows10 doesn't allow either windows keys as hyper?
@ 2020-11-04 21:44 Steve Greenburg
  2020-11-05 13:35 ` Eli Zaretskii
  0 siblings, 1 reply; 6+ messages in thread
From: Steve Greenburg @ 2020-11-04 21:44 UTC (permalink / raw)
  To: 44456

[-- Attachment #1: Type: text/plain, Size: 650 bytes --]


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?



[-- Attachment #2: Type: text/html, Size: 1349 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#44456: Windows10 doesn't allow either windows keys as hyper?
  2020-11-04 21:44 bug#44456: Windows10 doesn't allow either windows keys as hyper? Steve Greenburg
@ 2020-11-05 13:35 ` Eli Zaretskii
  2020-11-05 16:48   ` Steve Greenburg
  0 siblings, 1 reply; 6+ messages in thread
From: Eli Zaretskii @ 2020-11-05 13:35 UTC (permalink / raw)
  To: Steve Greenburg; +Cc: 44456

tags 44456 notabug
thanks

> From: Steve Greenburg <beethoven3322@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.





^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#44456: Windows10 doesn't allow either windows keys as hyper?
  2020-11-05 13:35 ` Eli Zaretskii
@ 2020-11-05 16:48   ` Steve Greenburg
  2020-11-05 16:54     ` Eli Zaretskii
  0 siblings, 1 reply; 6+ messages in thread
From: Steve Greenburg @ 2020-11-05 16:48 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 44456@debbugs.gnu.org

[-- Attachment #1: Type: text/plain, Size: 502 bytes --]


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-])


[-- Attachment #2: Type: text/html, Size: 952 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#44456: Windows10 doesn't allow either windows keys as hyper?
  2020-11-05 16:48   ` Steve Greenburg
@ 2020-11-05 16:54     ` Eli Zaretskii
  2020-11-05 17:05       ` Steve Greenburg
  0 siblings, 1 reply; 6+ messages in thread
From: Eli Zaretskii @ 2020-11-05 16:54 UTC (permalink / raw)
  To: Steve Greenburg; +Cc: 44456

> From: Steve Greenburg <beethoven3322@hotmail.com>
> CC: "44456@debbugs.gnu.org" <44456@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?





^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#44456: Windows10 doesn't allow either windows keys as hyper?
  2020-11-05 16:54     ` Eli Zaretskii
@ 2020-11-05 17:05       ` Steve Greenburg
  2020-11-05 17:47         ` Eli Zaretskii
  0 siblings, 1 reply; 6+ messages in thread
From: Steve Greenburg @ 2020-11-05 17:05 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 44456@debbugs.gnu.org

[-- Attachment #1: Type: text/plain, Size: 1104 bytes --]

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@gnu.org>
Sent: Thursday, November 5, 2020 4:54 PM
To: Steve Greenburg <beethoven3322@hotmail.com>
Cc: 44456@debbugs.gnu.org <44456@debbugs.gnu.org>
Subject: Re: bug#44456: Windows10 doesn't allow either windows keys as hyper?

> From: Steve Greenburg <beethoven3322@hotmail.com>
> CC: "44456@debbugs.gnu.org" <44456@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?

[-- Attachment #2: Type: text/html, Size: 2077 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#44456: Windows10 doesn't allow either windows keys as hyper?
  2020-11-05 17:05       ` Steve Greenburg
@ 2020-11-05 17:47         ` Eli Zaretskii
  0 siblings, 0 replies; 6+ messages in thread
From: Eli Zaretskii @ 2020-11-05 17:47 UTC (permalink / raw)
  To: Steve Greenburg; +Cc: 44456-done

> From: Steve Greenburg <beethoven3322@hotmail.com>
> CC: "44456@debbugs.gnu.org" <44456@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.





^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2020-11-05 17:47 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-04 21:44 bug#44456: Windows10 doesn't allow either windows keys as hyper? Steve Greenburg
2020-11-05 13:35 ` Eli Zaretskii
2020-11-05 16:48   ` Steve Greenburg
2020-11-05 16:54     ` Eli Zaretskii
2020-11-05 17:05       ` Steve Greenburg
2020-11-05 17:47         ` Eli Zaretskii

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).