Skip to content
This repository was archived by the owner on Nov 7, 2026. It is now read-only.

Inspector: Tastatur nicht mehr automatisch öffnen - #21

Merged
code4teaching merged 1 commit into
mainfrom
keyboard-autofocus
Oct 19, 2026
Merged

code4teaching merged 1 commit into
mainfrom
keyboard-autofocus

Conversation

@code4teaching

Copy link
Copy Markdown
Owner

Requested by Holger · project thread

Before: Beim Öffnen oder Auswählen einer Zeile bekam das Anweisungsfeld sofort den Fokus. Auf iPhone und iPad ohne Tastatur ging die Bildschirmtastatur auf und verdeckte das Diagramm.

After: Die Tastatur erscheint erst, wenn man ins Anweisungsfeld tippt. Auf dem Mac und auf dem iPad mit angeschlossener Tastatur springt der Cursor nach der Auswahl weiterhin direkt ins Feld.

How: Der Zeileneditor (CodeLineEditor) hat sich beim Erzeugen selbst fokussiert, weil sein Fokus-Token anfangs immer als „geändert“ galt; das passierte unabhängig vom Gerät. Jetzt übernimmt er das Token beim Erzeugen, nur ein späterer Wechsel holt die Tastatur. Die Regel für den Fokus nach einer Auswahl (DiagramInspectorAutoFocus) stammt aus dem Branch cursor/ipad-inspector-focus-293e, ohne dessen Versionsänderungen.

Prüfliste

  • iPhone: App öffnen, Zeile antippen: keine Tastatur; ins Feld tippen: Tastatur kommt
  • iPad hochkant ohne Tastatur: wie iPhone
  • iPad mit Hardware-Tastatur: nach Auswahl direkt tippen möglich
  • Mac: nach Auswahl direkt tippen möglich

Generated by Claude Code

- The line editor no longer becomes first responder just because it was
  created (its focus token started out "changed"), which opened the
  keyboard as soon as the inspector appeared, on iPhone too.
- Auto-focus after selecting a line only on Mac and on iPad with a
  hardware keyboard (taken from cursor/ipad-inspector-focus-293e).

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Cp4EQgFQyGbM8MVLiWbJKQ
@code4teaching code4teaching self-assigned this Oct 19, 2026
@code4teaching
code4teaching merged commit b7dbd8b into main Oct 19, 2026
1 check passed
@code4teaching
code4teaching deleted the keyboard-autofocus branch November 5, 2026 21:26
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants