From 168b13a1c52b925a0aebc3f1857562c4bc6e753f Mon Sep 17 00:00:00 2001 From: Joursoir Date: Wed, 8 Dec 2021 21:21:02 +0300 Subject: add execution for files and text editors --- Library/UefiShellUfmCommandLib/UefiShellUfmCommandLib.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Library/UefiShellUfmCommandLib/UefiShellUfmCommandLib.c') diff --git a/Library/UefiShellUfmCommandLib/UefiShellUfmCommandLib.c b/Library/UefiShellUfmCommandLib/UefiShellUfmCommandLib.c index fb56e1b..95d4989 100644 --- a/Library/UefiShellUfmCommandLib/UefiShellUfmCommandLib.c +++ b/Library/UefiShellUfmCommandLib/UefiShellUfmCommandLib.c @@ -17,12 +17,12 @@ STATIC CONST struct shortcut shortcuts[] = { {ACTION_ROUTINE, {SCAN_UP, 0x0}, jump_up, L"Up arrow", L"Movement"}, {ACTION_ROUTINE, {SCAN_DOWN, 0x0}, jump_down, L"Down arrow", L"Movement"}, {ACTION_ROUTINE, {SCAN_NULL, CHAR_TAB}, change_panel, L"TAB", L"Movement"}, - {ACTION_ROUTINE, {SCAN_NULL, CHAR_LINEFEED}, do_nothing, L"Enter", L"Movement"}, - {ACTION_ROUTINE, {SCAN_NULL, CHAR_CARRIAGE_RETURN}, do_nothing, L"Enter", L"Movement"}, + {ACTION_ROUTINE, {SCAN_NULL, CHAR_LINEFEED}, execute, L"Enter", L"Movement"}, + {ACTION_ROUTINE, {SCAN_NULL, CHAR_CARRIAGE_RETURN}, execute, L"Enter", L"Movement"}, {ACTION_ROUTINE, {SCAN_NULL, L' '}, mark, L"Space", L"Movement"}, {ACTION_CMD, {SCAN_F1, 0x0}, do_nothing, L"1", L"Help"}, - {ACTION_CMD, {SCAN_F2, 0x0}, do_nothing, L"2", L"Edit"}, - {ACTION_CMD, {SCAN_F3, 0x0}, do_nothing, L"3", L"Hex"}, + {ACTION_CMD, {SCAN_F2, 0x0}, edit, L"2", L"Edit"}, + {ACTION_CMD, {SCAN_F3, 0x0}, hexedit, L"3", L"Hex"}, {ACTION_CMD, {SCAN_F4, 0x0}, do_nothing, L"4", L"Copy"}, {ACTION_CMD, {SCAN_F5, 0x0}, do_nothing, L"5", L"RenMov"}, {ACTION_CMD, {SCAN_F6, 0x0}, do_nothing, L"6", L"Mkdir"}, -- cgit v1.2.3-18-g5258