fix(ui): 🐛 Simplify keyboard shortcut handling in load/save screens
Some checks failed
CI / Test (1.24) (push) Successful in -27m35s
CI / Test (1.25) (push) Failing after 1m3s
CI / Lint (push) Successful in -27m26s
CI / Build (push) Successful in -28m10s
Integration Tests / Integration Tests (push) Failing after 1m1s

This commit is contained in:
2026-01-04 18:41:59 +02:00
parent d87d657275
commit debf351c48

View File

@@ -107,8 +107,7 @@ func (se *SchemaEditor) showLoadScreen() {
// Keyboard shortcuts
form.SetInputCapture(func(event *tcell.EventKey) *tcell.EventKey {
switch event.Key() {
case tcell.KeyEscape:
if event.Key() == tcell.KeyEscape {
se.app.Stop()
return nil
}
@@ -214,8 +213,7 @@ func (se *SchemaEditor) showSaveScreen() {
// Keyboard shortcuts
form.SetInputCapture(func(event *tcell.EventKey) *tcell.EventKey {
switch event.Key() {
case tcell.KeyEscape:
if event.Key() == tcell.KeyEscape {
se.pages.RemovePage("save-database")
se.pages.SwitchToPage("main")
return nil