From d48e30756f6324240b1392792a026986e4cde31e Mon Sep 17 00:00:00 2001 From: Amanda Cameron Date: Sat, 1 Apr 2017 16:37:49 -0400 Subject: [PATCH] Add normal-key shortcuts for add/delete component in the cfgemu --- src/customlua/ocemu/bin/cfgemu.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/customlua/ocemu/bin/cfgemu.lua b/src/customlua/ocemu/bin/cfgemu.lua index 8762ab7..c07a7c6 100644 --- a/src/customlua/ocemu/bin/cfgemu.lua +++ b/src/customlua/ocemu/bin/cfgemu.lua @@ -139,7 +139,7 @@ local function componentConfig() gpu.set(2,listX+2," ") listX = listX + 1 gpu.set(2,listX+2,"▶") - elseif evnt[4] == keys.delete then + elseif evnt[4] == keys.delete or evnt[3] == string.byte("d") then local ok, err = ocemu.disconnect(list[listX][1]) if ok then table.remove(list, listX) @@ -148,7 +148,7 @@ local function componentConfig() else setStatus(err or "unknown error") end - elseif evnt[4] == keys.insert then + elseif evnt[4] == keys.insert or evnt[3] == string.byte("i") then setStatus("") local kind = prompt("Component type: ") local address = prompt("Component address: ")