Forum / NoMachine for Mac / Left option 3 not giving hash key on MacBook Pro UK keyboard
- This topic has 1 reply, 2 voices, and was last updated 4 years, 8 months ago by graywolf.
-
AuthorPosts
-
April 11, 2020 at 08:04 #26690richardgmcmahonParticipant
Hello,
I am connecting from a Apple Macbook Pro laptop with UK keyboard to a server running Linux RHEL 6 and Gnome 2 window manager. When using NoMachine the left side option-3 does not give me a hash key. right side option-3 does. #
Similarily for option-2; right side give €
In emacs left side returns M-2 and M-3.
A clue might be that in my .emacs on my Mac I have:
; fix hash key issue on mac lpatop with UK keyboard
;; Allow hash to be entered
(global-set-key (kbd “M-3”) ‘(lambda () (interactive) (insert “#”)))I am using NX 6.9.2 on the client end.; 5.3.25 on Server side
Some diagnostic info form setxkbmap and xinput are
xinput list
⎡ Virtual core pointer id=2 [master pointer (3)]
⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)]
⎜ ↳ xquartz virtual pointer id=6 [slave pointer (2)]
⎜ ↳ pen id=8 [slave pointer (2)]
⎜ ↳ cursor id=9 [slave pointer (2)]
⎜ ↳ eraser id=10 [slave pointer (2)]
⎣ Virtual core keyboard id=3 [master keyboard (2)]
↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)]
↳ xquartz virtual keyboard id=7 [slave keyboard (3)]setxkbmap -print
xkb_keymap {
xkb_keycodes { include “evdev+aliases(qwerty)” };
xkb_types { include “complete” };
xkb_compat { include “complete” };
xkb_symbols { include “pc+gb(mac)+inet(evdev)” };
xkb_geometry { include “pc(pc104)” };
};setxkbmap -query
rules: evdev
model: evdev
layout: gb
variant: macApril 16, 2020 at 16:17 #26805graywolfParticipantHello. It is intended to match the keyboard of the remote Linux machine having Alt on the left and AltGr on the right. So the left Option is mapped to Alt while the right Option is mapped to AltGr.
You can modify the keyboard map of the remote machine to make Alt and AltGr keys behave in the same way. Be aware that if you follow this way you won’t have Alt key at remote side. To proceed, just run this command in the remote session on Linux:
xmodmap -e "remove mod1 = Alt_L" -e "keycode 64 = ISO_Level3_Shift NoSymbol ISO_Level3_Shift"
-
AuthorPosts
This topic was marked as solved, you can't post.