feat: add a configurable shortcut setting for the polygon tool

MI
1h ago
+52-0

What has changed and why?

Part 1 of 9 of STU-240 (draw and edit polygons). Stacked on #3744. Implementation plan

  • The Polygon tool needs a keyboard shortcut that users can change, as the other tools have.
  • A new setting key_toolbar_polygon (default p), with a migration. The Settings dialog shows it as "Polygon tool".
  • The tool itself comes in a later PR.

How has it been tested?

  • Extended the settings resolver tests and the Settings dialog tests.

Did you update CHANGELOG.md?

  • Yes
  • Not needed (internal change)

Summary by CodeRabbit

  • New Features
    • Added a configurable keyboard shortcut for the Polygon tool in Settings, defaulting to P.
    • Polygon tool shortcut preferences are saved and restored between sessions.