Skip to content

Commit

Permalink
fixed backspace char on macos
Browse files Browse the repository at this point in the history
  • Loading branch information
nesbox committed Jan 26, 2025
1 parent 9f00f4e commit c49f8a7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.5)
cmake_minimum_required(VERSION 3.15)

include(cmake/version.cmake)

Expand Down
2 changes: 1 addition & 1 deletion src/studio/screens/console.c
Original file line number Diff line number Diff line change
Expand Up @@ -4377,7 +4377,7 @@ static void tick(Console* console)
if(console->cursor.delay)
console->cursor.delay--;

console->tickCounter++;
// console->tickCounter++;

if (getStudioMode(console->studio) != TIC_CONSOLE_MODE) return;

Expand Down
4 changes: 3 additions & 1 deletion src/system/sokol/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -459,8 +459,10 @@ static void app_input(const sapp_event* event)
handleKeydown(event->key_code, false);
break;
case SAPP_EVENTTYPE_CHAR:
if(event->char_code < 128)
if(event->char_code > 32 && event->char_code < 127)
{
platform.keyboard.text = event->char_code;
}
break;
case SAPP_EVENTTYPE_MOUSE_MOVE:
{
Expand Down

0 comments on commit c49f8a7

Please sign in to comment.