-
-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Meta-, does nothing in TEdit with an Italian keyboard on Linux #1985
Comments
The default Tedit readtable arms both Meta-, and Meta-< to go back one character. If the Italian keyboard doesn’t produce the expected key-bits for those Meta combinations, the backup won’t be triggered.
If you know what bits are showing up for those combinations, then you could add those to the Tedit readtable using TEDIT.SETFUNCTION. Something like
(TEDIT “Meta,???" (FUNCTION \TEDIT.ONECHAR.BACKWARD))
… On Jan 22, 2025, at 4:08 AM, Paolo Amoroso ***@***.***> wrote:
Describe the bug
In TEdit, pressing Meta-, moves the caret left and Meta-. right by one character. But pressing Meta-, on my italian keyboard <https://i.snap.as/wAoI3ouY.jpg> does nothing and the caret doesn't move. Meta-. works as expected.
To Reproduce
Steps to reproduce the behavior:
launch Medley
open TEdit
type one word
place the caret at the center of the word
press Meta-, on an Italian keyboard
Expected behavior
The caret moves left by one character.
Screenshots
N/A
Context (please complete the following information):
Are you using online.interlisp.org? no
OS: Linux
OS Version: Mint 22 Cinnamon
Display/window system: X11 + VNC
Host arch: x86_64 (System76 Merkaat)
Maiko version: 3c4d9f5393e56857d1e75352f8d8d0a0c9d91e01
IL:MAKESYSDATE: 21-Jan-2025 04:48:26
Additional context
The output of xev when , is pressed:
KeyPress event, serial 28, synthetic NO, window 0x4200001,
root 0x5cf, subw 0x4200002, time 39556239, (45,22), root:(110,825),
state 0x0, keycode 59 (keysym 0x2c, comma), same_screen YES,
XLookupString gives 1 bytes: (2c) ","
XmbLookupString gives 1 bytes: (2c) ","
XFilterEvent returns: False
KeyRelease event, serial 28, synthetic NO, window 0x4200001,
root 0x5cf, subw 0x4200002, time 39556351, (45,22), root:(110,825),
state 0x0, keycode 59 (keysym 0x2c, comma), same_screen YES,
XLookupString gives 1 bytes: (2c) ","
XFilterEvent returns: False
This issue may be related to the behavior of the < key on my keyboard described in #1828 <#1828>.
—
Reply to this email directly, view it on GitHub <#1985>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AQSTUJJJNGKRYAPYH2L6LCT2L6C4NAVCNFSM6AAAAABVUY25M2VHI2DSMVQWIX3LMV43ASLTON2WKOZSHAYDIMRRG43TMNA>.
You are receiving this because you are subscribed to this thread.
|
Do I need the keycode reported by
|
You need to know how the key surfaces in Lisp.
I added WHICHKEY to lispusers, type (WHICHKEY) and then hold down the key of interest.
… On Jan 22, 2025, at 8:38 AM, Paolo Amoroso ***@***.***> wrote:
Do I need the keycode reported by xev? Something like this?
(TEDIT.SETFUNCTION “Meta,keycode" (FUNCTION \TEDIT.ONECHAR.BACKWARD))
—
Reply to this email directly, view it on GitHub <#1985 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AQSTUJKJGGONBZWS3YDU4Z32L7CSBAVCNFSM6AAAAABVUY25M2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMMBXG4ZTCNJXHA>.
You are receiving this because you commented.
|
When I call |
What happens when you press just the comma on the different keyboards, without the meta?
… On Jan 23, 2025, at 8:40 AM, Paolo Amoroso ***@***.***> wrote:
When I call WHICHKEY and press Meta-, the function prints #1,4 and returns NIL. Not sure if I'm using it correctly.
—
Reply to this email directly, view it on GitHub <#1985 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AQSTUJOEHQ5UBXPH5R2HUVL2MELPBAVCNFSM6AAAAABVUY25M2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMMJQGM2TMMJWGQ>.
You are receiving this because you commented.
|
If I press just the comma |
@pamoroso you have to hold the comma (or any other key) down immediately after starting (WHICHKEY) until it returns either a key or a list of keys, or NIL |
Thanks, I was doing it wrong. When pressing and holding |
You're holding down two keys (meta and comma) - |
Running on macOS, with TEDIT dated 11-Jan-2025, on a US keyboard, |
BUT... that is inconsistent, it seems to depend on where in the display the line with the caret is. |
I misunderstood |
Then your keyboard has the expected behavior. You're using ldex or ldesdl? |
I'm using |
I changed WHICHKEY so that it returns a list of all the down keys.
I think the #1,4 that you see is what shows up when you return to the exec and the keys are still down,
… On Jan 23, 2025, at 1:30 PM, Paolo Amoroso ***@***.***> wrote:
I'm using ldex, I haven't been building for SDL since using VNC.
—
Reply to this email directly, view it on GitHub <#1985 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AQSTUJMRENIFAA7BIXQG5KT2MFNQDAVCNFSM6AAAAABVUY25M2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMMJRGA2TMNBRGM>.
You are receiving this because you commented.
|
In terms of moving multiple characters, it may be a timing issues. If you just hold meta-. down, for me it just zips across the document.
I also see repetition of all other keys. If you hold down just the “a” key, you start with one a, and then it just keeps going.
Isn’t there some logic that suppresses transitions until the bitvector has changed in some way?
… On Jan 23, 2025, at 11:45 AM, Nick Briggs ***@***.***> wrote:
BUT... that is inconsistent, it seems to depend on where in the display the line with the caret is.
—
Reply to this email directly, view it on GitHub <#1985 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AQSTUJODD2IEHSYVB63ERL32MFBFZAVCNFSM6AAAAABVUY25M2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMMJQHA3TGMRVGY>.
You are receiving this because you commented.
|
Pressing |
Which is what I would expect. But it is still the case that it doesn’t work for the Italian keyboard?
Try tracing \TEDIT.ONECHAR.FORWARD and \TEDIT.ONECHAR.BACKWARD—are they being called at all when their triggering keys are depressed?
… On Jan 23, 2025, at 11:42 PM, Paolo Amoroso ***@***.***> wrote:
Pressing Meta-, with the updated WHICHKEY returns ((%, <) (BLANK-TOP KEYBOARD DBK-META)).
—
Reply to this email directly, view it on GitHub <#1985 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AQSTUJMOLZQB66AMLP6H5XT2MHVGPAVCNFSM6AAAAABVUY25M2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMMJRHA3DANJYGA>.
You are receiving this because you commented.
|
For me, tracing on: \TEDIT.ONECHAR.BACKWARD gets called each time I type |
(and the same for the one character backward - an L selection works, an R selection doesn't) |
It still doesn't work for the Italian keyboard. But, weirdly, moving the caret left with This is the trace output after |
I did a few more tests and I'm using a 2-Jan-2025 07:29:14 loadup, which is the only working one I have because of #1986. I'm reasonably sure |
I did more tests and these are my observations. Sometimes This is the only behavior I can reproduce:
|
@pamoroso - see my note about whether it's a Left or Right selection, 5 and 4 comments back from this. |
Describe the bug
In TEdit, pressing
Meta-,
moves the caret left andMeta-.
right by one character. But pressingMeta-,
on my italian keyboard does nothing and the caret doesn't move.Meta-.
works as expected.To Reproduce
Steps to reproduce the behavior:
Meta-,
on an Italian keyboardExpected behavior
The caret moves left by one character.
Screenshots
N/A
Context (please complete the following information):
IL:MAKESYSDATE
: 21-Jan-2025 04:48:26Additional context
The output of
xev
when,
is pressed:This issue may be related to the behavior of the
<
key on my keyboard described in #1828.The text was updated successfully, but these errors were encountered: