Files
koreader/plugins
Igor Velkov 77882d374f InputDialog: close on Back when there is no Close button (#15830)
InputDialog binds the Back key group, but its handler only presses a button
carrying id "close" and does nothing when the dialog has none, so on a
non-touch device those dialogs cannot be dismissed with the key at all: the
only way out is to aim the cursor at Cancel.

Dialogs that can lose work should get that button (_addSaveCloseButtons adds
it alongside save_callback, and its callback is what asks about unsaved
changes), so the rest can simply close, as ButtonDialog does with the same key.
2026-08-07 21:09:18 +02:00
..