Skip to content

Commit 7743d7c

Browse files
committed
docs: say which key a digit maps to when its layer needs Shift
1 parent 2822fc6 commit 7743d7c

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

‎src/platform/macos/MacKeyLayout.cpp‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,10 @@ constexpr std::array<Layer, 4> kLayers{{
2525
kCGEventFlagMaskShift | kCGEventFlagMaskAlternate},
2626
}};
2727

28-
// Virtual key codes run below 128; the keypad's codes sit above the main
29-
// block's, so a digit or a period maps to its main key.
28+
// Virtual key codes run below 128. Within one modifier layer the keypad's codes
29+
// come after the main block's, so a digit or a period a plain key types maps to
30+
// its main key; a layer with fewer modifiers still wins over key position (a
31+
// layout whose number row needs Shift gets the keypad digit).
3032
constexpr UInt16 kKeycodeCount = 128;
3133

3234
// A layout's keys produce different characters on ANSI, ISO and JIS keyboards,

0 commit comments

Comments
 (0)