Opened 7 months ago

Last modified 6 months ago

#18635 new bug

Thinkpad X1 (US) keyboard layout: cannot type "<" and ">" keys

Reported by: jackburton Owned by: stippi
Priority: normal Milestone: Unscheduled
Component: User Interface Version: R1/beta4
Keywords: keymap Cc:
Blocked By: Blocking:
Platform: All

Description

I have a Thinkpad T470s which has the same keyboard layout as the X1. I use this keymap in Haiku and it's perfect, except that I cannot type the "<" and ">" characters in any way. These keys are missing in this keyboard so, on Linux at least, you have to use ALT-GR + SHIFT + Z / X to type them. In Haiku it doesn't work.

Attachments (2)

keyboard.jpg (3.5 MB ) - added by jackburton 6 months ago.
keymap.png (31.1 KB ) - added by jackburton 6 months ago.

Change History (5)

comment:1 by korli, 6 months ago

Which key is ALT-GR on this laptop actually? For instance the right option key isn't available on my keybboard with the US keymap.

Otherwise this patch would do it:

diff --git a/src/data/keymaps/US.keymap b/src/data/keymaps/US.keymap
index ca4cbc4172..a118de0e38 100644
--- a/src/data/keymaps/US.keymap
+++ b/src/data/keymaps/US.keymap
@@ -135,8 +135,8 @@ Key 0x48 = 0x1c     '4'      0x1c     0x1c     '4'      0x1c     '4'      0x1c
 Key 0x49 = ''       '5'      ''       ''       '5'      ''       '5'      ''       '5'      
 Key 0x4a = 0x1d     '6'      0x1d     0x1d     '6'      0x1d     '6'      0x1d     '6'      
 Key 0x4b = ''       ''       ''       ''       ''       ''       ''       ''       ''       
-Key 0x4c = 'z'      'Z'      0x1a     ''       ''       'Z'      'z'      ''       ''       
-Key 0x4d = 'x'      'X'      0x18     ''       ''       'X'      'x'      ''       ''       
+Key 0x4c = 'z'      'Z'      0x1a     ''       '<'      'Z'      'z'      ''       ''       
+Key 0x4d = 'x'      'X'      0x18     ''       '>'      'X'      'x'      ''       ''       
 Key 0x4e = 'c'      'C'      0x03     ''       ''       'C'      'c'      ''       ''       
 Key 0x4f = 'v'      'V'      0x16     ''       ''       'V'      'v'      ''       ''       
 Key 0x50 = 'b'      'B'      0x02     ''       ''       'B'      'b'      ''       ''       

by jackburton, 6 months ago

Attachment: keyboard.jpg added

by jackburton, 6 months ago

Attachment: keymap.png added

comment:2 by jackburton, 6 months ago

The right ALT-GR key is the OPT key here. Attached are a photo of the keyboard and a screenshot of the keymap

comment:3 by korli, 6 months ago

Like I wrote, the US keymap maps the CMD key to the AltGR key on your keyboard. So you won't be able to trigger ALT-GR + SHIFT + Z / X.

Note: See TracTickets for help on using tickets.