Skip to content

Commit

Permalink
Fix note mode minor bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
selfsigned committed Mar 20, 2023
1 parent d9c746b commit 40498d2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/drivers/keyboard/keyboard.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ unsigned char us_scancode_1[128] = {
'[', ']', '\n', 0, 'a', 's', 'd', 'f', 'g', 'h', 'j', 'k', 'l',
';', '\'', '`', 0, '\\', 'z', 'x', 'c', 'v', 'b', 'n', 'm', ',',
'.', '*', 0, ' ', 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, '-', 0, 0, 0, '+', 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '+', 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
};

Expand Down
6 changes: 1 addition & 5 deletions src/screens/loop.c
Original file line number Diff line number Diff line change
Expand Up @@ -58,16 +58,12 @@ void screen_loop(uint8_t home_screen, uint8_t note_screen) {
set_scroll(current_screen, code, scroll_state, isnotup);
break;
// control chars
case KBD_DELETE:
if (current_screen == note_screen)
vga_screen_clear(note_screen);
break;
case KBD_ENTER:
if (current_screen == note_screen)
vga_printf((vga_info){.screen = note_screen}, "\n");
break;
case KBD_TAB:
if (!current_screen)
if (current_screen == note_screen)
vga_printf((vga_info){.screen = note_screen}, " ");
break;
default:
Expand Down

0 comments on commit 40498d2

Please sign in to comment.