Skip to content

Fix/input and priority fixes - #349

Merged
Insality merged 16 commits into
developfrom
fix/input-and-priority-fixes
Sep 26, 2026
Merged

Insality merged 16 commits into
developfrom
fix/input-and-priority-fixes

Conversation

@Insality

Copy link
Copy Markdown
Owner

No description provided.

Copilot AI lite review requested due to automatic review settings September 26, 2026 15:58
@codecov

codecov Bot commented Sep 26, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 72.80702% with 31 lines in your changes missing coverage. Please review.
✅ Project coverage is 73.60%. Comparing base (a360575) to head (4a8ff27).

Files with missing lines Patch % Lines
druid/custom/rich_input/rich_input.lua 0.00% 14 Missing ⚠️
druid/extended/slider.lua 45.00% 11 Missing ⚠️
druid/base/hover.lua 50.00% 3 Missing ⚠️
druid/base/drag.lua 33.33% 2 Missing ⚠️
druid/extended/input.lua 98.03% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop     #349      +/-   ##
===========================================
+ Coverage    72.85%   73.60%   +0.74%     
===========================================
  Files           31       31              
  Lines         4704     4773      +69     
===========================================
+ Hits          3427     3513      +86     
+ Misses        1277     1260      -17     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟡 Changes recommended

The delete-key setting registration and Rich Input cursor synchronization still need to be addressed.

Review effort: Lite
Findings: 1 Medium severity

Open (1)
What changed in this PR

This PR improves input editing, cursor handling, Rich Input behavior, component priority resets, and drag interactions.

Changes:

  • Adds navigation, modifiers, forward delete, and focus cleanup.
  • Updates cursor styles and disabled drag behavior.
  • Fixes priority propagation and updates tests and documentation.
File Summary
wiki/​changelog.md Documents changes and migration notes
wiki/​advanced-setup.md Documents delete-key configuration
test/​tests/​test_input.lua Tests input behavior
test/​tests/​test_component.lua Tests component priorities
test/​test.gui_script Registers component tests
druid/​styles/​default/​style.lua Adds default input cursors
druid/​extended/​input.lua Implements input editing and cursor behavior
druid/​custom/​rich_input/​rich_input.lua Updates Rich Input integration
druid/​const.lua Adds delete-key configuration
druid/​component.lua Fixes priority propagation and reset
druid/​base/​drag.lua Handles disabled drag cursors
api/​components/​custom/​rich_input_api.md Updates Rich Input API documentation

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread druid/custom/rich_input/rich_input.lua Outdated
Comment on lines +209 to +210
self.drag.style.ON_HOVER_CURSOR = self.input.style.ON_HOVER_CURSOR
self.drag.style.ON_MOUSE_HOVER_CURSOR = self.input.style.ON_MOUSE_HOVER_CURSOR
…till mouse

- Druid instance replays the last mouse move at the end of the update, if a component requested it with the internal `refresh_mouse()`
- Scroll requests it once per frame, if the content moved: by the wheel, the inertion, the drag or the scroll_to animation
- Hover resets the mouse hover when the mouse move is consumed by a component above
- Button does not reset the hover on the mouse wheel or key actions consumed above
- Remove the empty cursor stack entries
@Insality
Insality merged commit 4967257 into develop Sep 26, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants