Skip to content

Commit 4e2d3ec

Browse files
asimoneclaude
andcommitted
Add larger gap between function row and number row (~half unit)
Matches physical 104-key keyboard proportions where the F-key row sits separated from the main key area. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent b6b1526 commit 4e2d3ec

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/keyboardLayout.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,18 @@
55

66
const U = 44; // unit
77
const G = 4; // gap
8+
const FROW_GAP = 20; // extra space between function row and number row
89

910
export const KEYBOARD_WIDTH = 1040;
10-
export const KEYBOARD_HEIGHT = 268;
11+
export const KEYBOARD_HEIGHT = 288;
1112

1213
function key(id, label, col, row, w = 1, h = 1, altLabel) {
1314
return {
1415
id,
1516
label,
1617
altLabel,
1718
x: col * U + G,
18-
y: row * U + G,
19+
y: row * U + G + (row >= 1 ? FROW_GAP : 0),
1920
w: w * U - G,
2021
h: h * U - G,
2122
};

0 commit comments

Comments
 (0)