Skip to content

fix: two keyboard shortcut bugs - #796

Open
SmrutiSawant wants to merge 2 commits into
frappe:developfrom
SmrutiSawant:fix-shortcut
Open

fix: two keyboard shortcut bugs#796
SmrutiSawant wants to merge 2 commits into
frappe:developfrom
SmrutiSawant:fix-shortcut

Conversation

@SmrutiSawant

Copy link
Copy Markdown
Contributor

What

Ctrl+Shift+C leaked a listener per press copy-block-styles called useStorage() inside action(). VueUse attaches cleanup to Vue's active effect scope; a keypress handler has none, so the cleanup was silently dropped. Now hoisted to module scope

Ctrl+Shift+L was bound twice
The "Highlight Blocks with Client Scripts" hold binding collided with the Layers tab (highlightBlocksWithClientScripts was written, never read). Removed the binding and the dead store field.

Screenshot 2026-09-03 120028

@greptile-apps

greptile-apps Bot commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

Confidence Score: 5/5

The PR appears safe to merge with no actionable defects identified.

The storage lifetime now matches the application module lifetime, while the removed shortcut only wrote an otherwise unread field.

Reviews (1): Last reviewed commit: "fix: remove dead Ctrl+Shift+L highlight-..." | Re-trigger Greptile

@codecov

codecov Bot commented Sep 3, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 66.06%. Comparing base (12c787a) to head (64fc57d).

Additional details and impacted files
@@           Coverage Diff            @@
##           develop     #796   +/-   ##
========================================
  Coverage    66.06%   66.06%           
========================================
  Files           93       93           
  Lines        10386    10386           
========================================
  Hits          6862     6862           
  Misses        3524     3524           

☔ 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.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

const pageStore = usePageStore();
const canvasStore = useCanvasStore();

// module scope, not inside the command action: useStorage subscribes to storage

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

we can make the comment more concise.

@mergify

mergify Bot commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

Tick the box to add this pull request to the merge queue (same as @mergifyio queue).

  • Queue this pull request

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