feat(event-form): auto-focus the title on a new event, optionally (#10)
Opening the new-event form now puts the cursor in the title field and raises the keyboard, so the user can type the name straight away instead of tapping the field first (issue #10). On by default — most events get a title — with a new "Focus title on new event" switch in Settings → New event form to turn it off. Only the create form auto-focuses: editing an existing event and opening a prefilled/imported form never grab focus (guarded by !isEditing && title blank). - SettingsPrefs: autofocusEventTitle (booleanPreferencesKey), default true. - Plumbed through SettingsViewModel/UiState (settings switch) and EventEditViewModel/UiState (read by the form). - EventEditScreen: a FocusRequester on the title InlineField, requested once per open from a LaunchedEffect when the guard holds. - Strings (en + de), unit test for the new pref default/round-trip. Bumps to 2.11.2. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
11
CHANGELOG.md
11
CHANGELOG.md
@@ -5,6 +5,16 @@ All notable changes to this project will be documented in this file.
|
||||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
||||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||
|
||||
## [2.11.2] — 2026-06-28
|
||||
|
||||
### Added
|
||||
- Jump straight to typing a title. When you start a new event, Calendula now puts
|
||||
the cursor in the title field and opens the keyboard right away, so you can type
|
||||
the name without an extra tap. It's on by default and only affects creating an
|
||||
event — editing never grabs focus — and a new **Focus title on new event**
|
||||
switch (Settings → New event form) turns it off. Thanks to @abrossimow for the
|
||||
suggestion ([#10]).
|
||||
|
||||
## [2.11.1] — 2026-06-28
|
||||
|
||||
### Fixed
|
||||
@@ -695,3 +705,4 @@ automatically, with zero telemetry and no internet permission.
|
||||
[#7]: https://codeberg.org/jlmakiola/calendula/issues/7
|
||||
[#8]: https://codeberg.org/jlmakiola/calendula/issues/8
|
||||
[#9]: https://codeberg.org/jlmakiola/calendula/issues/9
|
||||
[#10]: https://codeberg.org/jlmakiola/calendula/issues/10
|
||||
|
||||
Reference in New Issue
Block a user