Add CTRL+SHFT+TAB shortcut

add-themes
Ronald 7 months ago
parent 892237ed3b
commit 2306b90e83

@ -364,7 +364,7 @@ update :: proc(app: ^App) {
current_file.scroll_y = max(0, current_file.scroll_y) current_file.scroll_y = max(0, current_file.scroll_y)
// Handle keyboard shortcuts // Handle keyboard shortcuts
if rl.IsKeyDown(.LEFT_CONTROL) { if rl.IsKeyDown(.LEFT_CONTROL) || rl.IsKeyDown(.RIGHT_CONTROL) {
if rl.IsKeyPressed(.S) { if rl.IsKeyPressed(.S) {
save_file(current_file) save_file(current_file)
} }
@ -378,7 +378,11 @@ update :: proc(app: ^App) {
paste_text(current_file, app.copied_text) paste_text(current_file, app.copied_text)
} }
if rl.IsKeyPressed(.TAB) { 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)
}
} }
} }

Loading…
Cancel
Save