fb: Added support for typing backspaces.

This commit is contained in:
2025-02-24 23:24:03 +00:00
parent f7723a3944
commit 00d3a1de72
3 changed files with 25 additions and 8 deletions
+2 -3
View File
@@ -11,9 +11,7 @@ use pc_keyboard::{
};
use spin::{Lazy, Mutex, Once};
use crate::println;
use super::print;
use crate::prelude::*;
static KBD_QUEUE: Once<ArrayQueue<u8>> = Once::new();
static WAKER: AtomicWaker = AtomicWaker::new();
@@ -21,6 +19,7 @@ static WAKER: AtomicWaker = AtomicWaker::new();
pub static KEYBOARD: Lazy<Mutex<Keyboard<Uk105Key, ScancodeSet1>>> = Lazy::new(|| {
Mutex::new(Keyboard::new(
ScancodeSet1::new(),
// TODO: Expose an API to change the default KB layout.
layouts::Uk105Key,
HandleControl::Ignore,
))