From b97e950d86e4694409c01e507db34a87da85e452 Mon Sep 17 00:00:00 2001 From: TheWireLord Date: Sat, 12 Dec 2020 16:45:02 -0500 Subject: [PATCH] Added Numpad Enter Support - bios.lua Add the ability to use Numpad Enter and have it act just like normal Enter. (Just like the web-based emulator on the Tweaked.cc wiki) --- src/main/resources/data/computercraft/lua/bios.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/resources/data/computercraft/lua/bios.lua b/src/main/resources/data/computercraft/lua/bios.lua index 4407dc99e..f0c364994 100644 --- a/src/main/resources/data/computercraft/lua/bios.lua +++ b/src/main/resources/data/computercraft/lua/bios.lua @@ -338,8 +338,8 @@ function read(_sReplaceChar, _tHistory, _fnComplete, _sDefault) redraw() elseif sEvent == "key" then - if param == keys.enter then - -- Enter + if param == keys.enter or param == keys.numPadEnter then + -- Enter/Numpad Enter if nCompletion then clear() uncomplete()