|
|
|
|
@ -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)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|