Skip to content

Commit 4604062

Browse files
committed
Add PowerOnTestOk.
1 parent 1b11ccc commit 4604062

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,8 @@ pub enum KeyCode {
183183
VolumeDown,
184184
VolumeUp,
185185
WWWHome,
186+
// Sent when the keyboard boots
187+
PowerOnTestOk,
186188
}
187189

188190
#[derive(Debug, PartialEq, Eq, Copy, Clone)]

src/scancodes.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -394,6 +394,7 @@ impl ScancodeSet for ScancodeSet2 {
394394
0x7D => Ok(KeyCode::Numpad9), // 7D
395395
0x7E => Ok(KeyCode::ScrollLock), // 7E
396396
0x83 => Ok(KeyCode::F7), // 83
397+
0xAA => Ok(KeyCode::PowerOnTestOk), // AA
397398
_ => Err(Error::UnknownKeyCode),
398399
}
399400
}

0 commit comments

Comments
 (0)