fb: Added support for typing backspaces.
This commit is contained in:
@@ -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,
|
||||
))
|
||||
|
||||
Reference in New Issue
Block a user