Hello.
I have a problem with the keyboard of my MSI laptop running LM 19: the Enter key does not work any more.
It will go to customer service and repair and in the meantime I am using an USB keyboard.
But before it is fixed, I have a couple of trips to do with this laptop.
Hence, I would like to map a keyboard shortcut for Enter , globally (for all applications, including the terminal emulator).
I have seen I might be able to do this under Settings > Keyboard > Shortcuts > Custom Shortcuts.
But which command do I enter there in the dialogue window ?
Add keyboard shortcut for Enter
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
-
- Level 2
- Posts: 94
- Joined: Tue May 10, 2016 4:25 am
Add keyboard shortcut for Enter
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Re: Add keyboard shortcut for Enter
Remapping a key in keyboard layout will be a better solution. For example,
Scroll Lock
key is disabled in almost all layouts in LM. You can enable it and remap to Enter
. Run this command in terminal and restart the computer:
Code: Select all
sudo sed -i \
-e '71s|.*|key<SCLK>{[Return]};|' \
-e '71 a modifier_map Mod3 {Scroll_Lock};' \
/usr/share/X11/xkb/symbols/pc \
&& sudo dpkg-reconfigure xkb-data
-
- Level 2
- Posts: 94
- Joined: Tue May 10, 2016 4:25 am
Re: Add keyboard shortcut for Enter
Thanks for your help.
This sounds like a good option .. except I cannot see any Scoll lock key on my keyboard.
The laptop is a MSI GS65 8RE-052FR Stealth Thin.
Ideally, I would liek to map it to the right Shift key that is right below the Enter key. Otherwise, the $ key.
Is there a list of the various key names somewhere (such as 'Scroll_Lock' ) ?
And when I have the keyboard fixed, how do I undo this ?
This sounds like a good option .. except I cannot see any Scoll lock key on my keyboard.
The laptop is a MSI GS65 8RE-052FR Stealth Thin.
Ideally, I would liek to map it to the right Shift key that is right below the Enter key. Otherwise, the $ key.
Is there a list of the various key names somewhere (such as 'Scroll_Lock' ) ?
And when I have the keyboard fixed, how do I undo this ?
Re: Add keyboard shortcut for Enter
Command for
To undo remapping reinstall
Right Shift
key:
Code: Select all
sudo sed -i '29s|.*|key<RTSH>{[Return]};|' \
/usr/share/X11/xkb/symbols/pc \
&& sudo dpkg-reconfigure xkb-data
xkb-data
package. In terminal:
Code: Select all
sudo apt-get install --reinstall xkb-data
-
- Level 2
- Posts: 94
- Joined: Tue May 10, 2016 4:25 am
Re: Add keyboard shortcut for Enter
It worked ! Awesome !
Thanks a lot
Thanks a lot