-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Numeric keypad: the Enter key does not generate newline #2774
Comments
If you use the |
The keyboard is connected to a Intel NUC, maybe this is the source of
incompatibility
Em sex., 14 de abr. de 2023 às 13:14, Mehrad Mahmoudian <
***@***.***> escreveu:
… Yes, it sends EventKey: Ctrl-j: "\n"
[image: image]
<https://user-images.githubusercontent.com/390889/232099180-d0f4c904-2810-4020-acf9-a79739380127.png>
—
Reply to this email directly, view it on GitHub
<#2774 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AQAYBAF4FRJE27G2AKXXSKTXBFZVPANCNFSM6AAAAAAVYMDZHU>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Ok, understood! Just sending some info that might be of interest: Using 'xev' on command line to differentiate keys: |
These are what I get from
The following is the diff. I've just added two lines to the beginning of each buffer to clarify which one is from which key |
I am using this as a workaround:
|
@developer1105 may I ask why this was closed? |
One thing I noticed recently, is that this problem happens in IceWM (the window manager I was using some time ago). In Cinnamon this does not happen. Both enter keys (alphabetic keyboard and numeric keyboard) generate newlines. |
I probably closed it by mistake. Should I reopen it? |
Yes, I tested it now with 2.0.13 (commit hash 68d88b5) and still cannot insert new line with numpad enter key |
As a workaround you can add whatever event you get to your ~/.config/micro/bindings.json (check the actual key code your keyboard is sending with "Ctrl-j": "InsertNewline", |
@Andriamanitra kiitos, mutta se ei ole sopi ;) Because a user might bind Ctrl-j to an actual legit action already. Therefore I suggest opening the issue in order to getting it fixed. Afterall terminal gets the key, nvim, emacs (interminal), and etc are accepting numpad enter. The only exception I've found in terminal is nano which registers Ctrl-j |
Ok, I guess this issue is properly reopened now... |
System: Arch Linux
Data about micro:
Version: 2.0.11
Commit hash: 225927b
Compiled on August 09, 2022
Problem: when pressing the Enter key (numeric keypad) it does not generate newline (as expected).
All the other keys in the numeric keypad work fine (both with numlock on, and with numlock off).
The text was updated successfully, but these errors were encountered: