help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: emacs-pgtk-git 30.0.50 not recognize kbd "S-SPC"


From: Po Lu
Subject: Re: emacs-pgtk-git 30.0.50 not recognize kbd "S-SPC"
Date: Fri, 23 Dec 2022 12:46:28 +0800
User-agent: Gnus/5.13 (Gnus v5.13)

Hu Elliott <ATNewHope@outlook.com> writes:

> Hi, I switched my emacs from x window-system (ver 28.x) to pgtk window-system 
> (ver 30.0.50) for native wayland support (my WM/DE is SwayWM).
>
> But I can't bind "S-SPC" to a function (yasnippet's "yas-next-field") anymore 
> because emacs won't recognize "S-SPC" (i.e. <shift> + <space>).
>
> Here's futher detail:
>
> 1. switched to x window-system emacs (ver 28.x, stable release)
>  a. run "emacs -Q"
>  b. press "C-h k"
>  c. press "S-SPC"
>  d. result (please notice the "translated from S-SPC"):
>
> SPC (translated from S-SPC) runs the command self-insert-command
> (found in global-map), which is an interactive built-in function in ‘C
> source code’.
> ...
>
> 2. switched to pgtk window-system emacs (ver 30.0.50)
>  a. run "emacs -Q"
>  b. press "C-h k"
>  c. press "S-SPC"
>  d. result:
>
> SPC runs the command self-insert-command (found in global-map), which
> is an interactive built-in function in ‘C source code’.
> ...
>
> As I rely on this key binding heavily to jump through tab stops in my 
> snippets (thousand times per day), I really need "S-SPC" to be recognized 
> again. Your help is highly appreciated.
>
> Thank you.

This is a problem with GTK input methods.  The bug lies with them, but
you can either run:

  (pgtk-use-im-context nil)

to disable GTK input methods altogether, or to put up with the problem,
since the input method developers have no interest in supporting such
unusual key press events.

Thanks.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]