From 72fe60b6a829dd7e63787d5d64ee62f809377e58 Mon Sep 17 00:00:00 2001 From: Jeremy Soller Date: Fri, 30 Sep 2016 10:34:44 -0600 Subject: [PATCH] Add delete and insert to ps2d --- drivers/ps2d/src/keyboard.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/ps2d/src/keyboard.rs b/drivers/ps2d/src/keyboard.rs index a72620831..d50557ed5 100644 --- a/drivers/ps2d/src/keyboard.rs +++ b/drivers/ps2d/src/keyboard.rs @@ -60,6 +60,12 @@ pub fn keyboard() { 0x51 => { // Page down input.write(b"\x1B[6~").unwrap(); }, + 0x52 => { // Insert + input.write(b"\x1B[2~").unwrap(); + }, + 0x53 => { // Delete + input.write(b"\x1B[3~").unwrap(); + }, _ => { let c = if ctrl { match keymap::get_char(scancode, false) {