Replace single-click rename with double-click and hover pencil icon #6

Closed
opened 2026-03-11 14:37:05 +01:00 by dostulata · 0 comments
Owner

Summary

Currently, single-clicking anywhere near a combatant's name enters inline rename mode, making it easy to trigger accidentally when intending to open the stat block. This issue replaces that with a double-click trigger and a hover-revealed pencil icon, with long-press support on touch devices. Single-clicking the name will instead open the stat block panel.

Acceptance Criteria

  • Single-clicking the combatant name opens/toggles the stat block panel (no longer enters edit mode)
  • Double-clicking the combatant name enters inline edit mode
  • On touch devices, long-pressing the name enters inline edit mode
  • The inline edit behavior (text input, Escape to cancel, Enter/blur to commit) remains unchanged
  • Other inline-editable fields (HP, AC, initiative) are not affected by this change
## Summary Currently, single-clicking anywhere near a combatant's name enters inline rename mode, making it easy to trigger accidentally when intending to open the stat block. This issue replaces that with a double-click trigger and a hover-revealed pencil icon, with long-press support on touch devices. Single-clicking the name will instead open the stat block panel. ## Acceptance Criteria - [x] Single-clicking the combatant name opens/toggles the stat block panel (no longer enters edit mode) - [x] Double-clicking the combatant name enters inline edit mode - [x] On touch devices, long-pressing the name enters inline edit mode - [x] The inline edit behavior (text input, Escape to cancel, Enter/blur to commit) remains unchanged - [x] Other inline-editable fields (HP, AC, initiative) are not affected by this change
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: dostulata/initiative#6