Page MenuHomePhabricator

[SEG] Instant visual response to inverted state of tools (add, substract, paint, wipe)
Open, NormalPublic

Description

Status: Currently the tools add, substract, paint and wipe have the option to invert their behavior by pressing "CTRL". This is also visualized by a change of color. But the change of state and color is only done, when the mouse triggers an event (move or click/release).

Reproduce:

  • Uses a named tool.
  • Stop movement
  • Press CTRL
  • The color does not change.

Reason: The state change is triggered as a modifier of the mouse events. So if the mouse is not used, the CTRL press or release is not communicated to the tool.

What is needed:

  1. We need to extend the event mapping of the state machine. It knows Keypress (but only for non modifier keys), but you cannot get an event on key release, which would also be needed.
  2. We might not be able to use CTRL (or other modifier keys); may be "space" in an option.