]> Projects (at) Tadryanom (dot) Me - AdrOS.git/commit
feat: ALT key support in PS/2 keyboard driver
authorTulio A M Mendes <[email protected]>
Tue, 17 Feb 2026 07:51:33 +0000 (04:51 -0300)
committerTulio A M Mendes <[email protected]>
Tue, 17 Feb 2026 07:51:33 +0000 (04:51 -0300)
commitdd70c4f5295496a2f501e9e26db2a603c9167d11
tree1ce8de34347c43445fd196ede8cc806e23bffd79
parente75c5ebe19660b60fd145d564b798d1f97980c82
feat: ALT key support in PS/2 keyboard driver

Added alt_held state tracking for Left ALT (scancode 0x38/0xB8)
and Right ALT (E0 0x38/0xB8). When ALT is held, the driver
emits ESC (0x1B) prefix before the character, which is the
standard terminal encoding for Alt+key combinations.

Also handles Right CTRL (E0 0x1D/0x9D) which was previously
ignored since it uses E0-prefixed scancodes.

Summary of modifier keys now supported:
  - Shift (L/R): uppercase and symbol characters
  - CTRL (L/R):  control characters (c & 0x1F)
  - ALT (L/R):   ESC prefix + character
src/hal/x86/keyboard.c