mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-17 05:14:24 +00:00
Every craft text control (TextField, NumberField, ChipField, AltTextField, DateField, ComboBox) shows the EditMenu in a context menu on a right click in its text, the Menu key or Shift+F10. The open menu holds the focus without ending the text part's typing run or losing its selection, so Escape closes the menu and the field keeps editing, and a picked row acts on the field's selection once the focus is back. Rows run their EditCommands through the command board, the same route an app's Edit menu uses. - record_context counts a secondary release on a component's text widget - a secondary press inside the selection keeps the selection - EditCommand::Delete: the Delete command run from a menu deletes a text part's selection; the Delete and Backspace keys stay the text part's own deletion, and editors leave the command to the app - TextField/NumberField::own_context_menu for a caller that hangs its own context menu on the field (the transform fields' unit menu)