-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
fix: edit interaction for url, date and attachment #10539
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
📝 WalkthroughWalkthroughThis PR updates multiple Vue components within the nc-gui package to refine keyboard handling and focus control. In the Date Editor component, the keydown listener now checks for the 'Enter' key to set the component as editable and open the date picker. In the Attachment component, the keydown listener’s first parameter is replaced with an injected value, and an early return is added when a canvas is injected. The Url Editor component has its onMounted hook modified to remove an unnecessary condition, ensuring the input field receives focus regardless of the canvas injection state. Changes
Sequence Diagram(s)sequenceDiagram
participant U as User
participant DE as Date Editor Component
participant KP as Keydown Listener
U->>DE: Press 'Enter' key
DE->>KP: Handle keydown event
KP->>DE: Check if date picker is open
alt Date picker is not open
DE->>DE: Set editable = true
DE->>DE: Open date picker
else Date picker is already open
Note over DE: No action taken
end
sequenceDiagram
participant U as User
participant AE as Attachment Component
participant KP as Keydown Listener
participant CI as Canvas Injector
U->>AE: Press key
AE->>KP: Pass keydown event with injected ActiveCellInj
KP->>CI: Check isCanvasInjected status
alt Canvas is injected
KP-->>AE: Exit early (no further processing)
else Not injected
KP->>AE: Process key event normally
end
Possibly related PRs
Suggested labels
Suggested reviewers
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (3)
⏰ Context from checks skipped due to timeout of 90000ms (4)
🔇 Additional comments (3)
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Uffizzi Preview |
Change Summary
Provide summary of changes with issue number if any.
Change type
Test/ Verification
Provide summary of changes.
Additional information / screenshots (optional)
Anything for maintainers to be made aware of