From 2306b90e839a4fa0473d1e67cc86491da780f52b Mon Sep 17 00:00:00 2001 From: Ronald Date: Thu, 12 Jun 2025 21:45:06 +0100 Subject: [PATCH] Add CTRL+SHFT+TAB shortcut --- main.odin | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/main.odin b/main.odin index efdbeb0..0893b6b 100644 --- a/main.odin +++ b/main.odin @@ -364,7 +364,7 @@ update :: proc(app: ^App) { current_file.scroll_y = max(0, current_file.scroll_y) // Handle keyboard shortcuts - if rl.IsKeyDown(.LEFT_CONTROL) { + if rl.IsKeyDown(.LEFT_CONTROL) || rl.IsKeyDown(.RIGHT_CONTROL) { if rl.IsKeyPressed(.S) { save_file(current_file) } @@ -378,7 +378,11 @@ update :: proc(app: ^App) { paste_text(current_file, app.copied_text) } if rl.IsKeyPressed(.TAB) { - app.active_tab = (app.active_tab + 1) % len(app.files) + if rl.IsKeyDown(.LEFT_SHIFT) || rl.IsKeyDown(.RIGHT_SHIFT) { + app.active_tab = (app.active_tab - 1) % len(app.files) + } else { + app.active_tab = (app.active_tab + 1) % len(app.files) + } } }