[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Physical keyboard events
From: |
Yuri Khan |
Subject: |
Re: Physical keyboard events |
Date: |
Thu, 31 Oct 2024 13:13:04 +0700 |
On Thu, 31 Oct 2024 at 00:37, Eli Zaretskii <eliz@gnu.org> wrote:
> > * Look up the active modifiers + active group keysym.
> > * If this yields ‘self-insert-command’ or another command
> > specifically whitelisted, return that.
> > * Look up the active modifiers + keysym from the Latin-based group. Return
> > that.
>
> How do you know which keymap to look up and for which character,
> before you decide which character to produce?
What seems to be the difficulty with the description above? The first
lookup happens the same way as it currently does. For the second
lookup, pretend the user remembered to switch to their preferred
Latin-based layout before hitting the keys.
> > Test case: If a mode keymap binds both ‘/’ and ‘.’, and a key produces
> > ‘/’ in the Latin layout and ‘.’ in Cyrillic layout, then the ‘/’
> > command shall be executed regardless of whether Latin or Cyrillic
> > layout is active.
>
> What if '/' is bound to self-insert-command, but '.' to something
> else: what do you return then?
What kind of mode would allow self-insertion for some characters but
use others for commands? Like maybe Calc, where ‘.’ is the decimal
point but ‘/’ is the division command?
In this case I think using ‘.’ for entering the decimal point wins,
and the division command has to be invoked by either the kp-divide key
or the {/ \} key. That is, calc-divide has to be whitelisted as
invocable with the national layout.
- Re: Physical keyboard events, (continued)
- Re: Physical keyboard events, Eli Zaretskii, 2024/10/29
- Re: Physical keyboard events, Max Nikulin, 2024/10/29
- Re: Physical keyboard events, Yuri Khan, 2024/10/30
- Re: Physical keyboard events, Peter Feigl, 2024/10/30
- Re: Physical keyboard events, Eli Zaretskii, 2024/10/30
- Re: Physical keyboard events, Yuri Khan, 2024/10/30
- Re: Physical keyboard events, Eli Zaretskii, 2024/10/30
- Re: Physical keyboard events, Dov Grobgeld, 2024/10/30
- Re: Physical keyboard events, Juri Linkov, 2024/10/30
- Re: Physical keyboard events, Eli Zaretskii, 2024/10/30
- Re: Physical keyboard events,
Yuri Khan <=
- Re: Physical keyboard events, Eli Zaretskii, 2024/10/30
- Re: Physical keyboard events, Max Nikulin, 2024/10/30
- Re: Physical keyboard events, Cecilio Pardo, 2024/10/29
- Re: Physical keyboard events, Cecilio Pardo, 2024/10/29
Re: Physical keyboard events, Alan Mackenzie, 2024/10/29