wang904 2 年 前
コミット
d0d79c828d
2 ファイル変更2 行追加1 行削除
  1. 0 1
      user/apps/shell/shell.c
  2. 2 0
      user/libs/libKeyboard/keyboard.c

+ 0 - 1
user/apps/shell/shell.c

@@ -133,7 +133,6 @@ int shell_readline(int fd, char *buf)
 {
     int key = 0;
     int count = 0;
-
     while (1)
     {
         key = keyboard_analyze_keycode(fd);

+ 2 - 0
user/libs/libKeyboard/keyboard.c

@@ -427,6 +427,7 @@ int keyboard_analyze_keycode(int fd)
         case 0xc8:
             arrow_u = false;
             key = OTHER_KEY;
+            return 0xc8;
             break;
         case 0x4b:
             arrow_l = true;
@@ -439,6 +440,7 @@ int keyboard_analyze_keycode(int fd)
         case 0x50:
             arrow_d = true;
             key = OTHER_KEY;
+            return 0x50;
             break;
         case 0xd0:
             arrow_d = false;