Skip to content

πŸ› Support macOS ⌘ Key in Keyboard Shortcuts - #431

Merged
MFA-X-AI merged 1 commit into
masterfrom
fahreza/fix-mac-
Jul 25, 2025
Merged

MFA-X-AI merged 1 commit into
masterfrom
fahreza/fix-mac-

Conversation

@MFA-X-AI

Copy link
Copy Markdown
Member

Description

This PR updates our CustomActionEvent handler so that on macOS it responds to the β€œβŒ˜β€ key as well as β€œCtrl” on Windows/Linux. Internally, we now treat event.ctrlKey || event.metaKey as the β€œcommand” modifier, and all existing keybindings (Z, Y, S, X, C, V, Delete/Backspace) continue to work exactly as before.

Pull Request Type

  • Xircuits Core (Jupyterlab Related changes)
  • Xircuits Canvas (Custom RD Related changes)
  • Xircuits Component Library
  • Xircuits Project Template
  • Testing Automation
  • Documentation
  • Others (Please Specify)

Type of Change

  • New feature (non-breaking change which adds functionality)
  • Bug fix (non-breaking change which fixes an issue)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

Tests

1. Test A

  1. Press Ctrl+Z, Ctrl+Y, Ctrl+S, Ctrl+X, Ctrl+C, Ctrl+V, Delete, and Backspace to verify undo/redo/save/cut/copy/paste/delete commands still fire.
  2. On macOS, press ⌘+Z, ⌘+Y, ⌘+S, ⌘+X, ⌘+C, ⌘+V, Delete, and Backspace β€” verify the same commands execute.
  3. Ensure no other keybindings or modifiers were impacted.

Tested on? Specify Version.

  • WindowsΒ 10
  • Linux
  • [] Mac
  • Others (State here β†’ xxx )

@MFA-X-AI
MFA-X-AI marked this pull request as ready for review July 25, 2025 07:10
@github-actions

Copy link
Copy Markdown

Binder πŸ‘ˆ Launch a binder notebook on branch XpressAI/xircuits/fahreza/fix-mac-

@MFA-X-AI
MFA-X-AI requested a review from mansouralawi July 25, 2025 07:11

@mansouralawi mansouralawi left a comment

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.

Works as expected. Thank you

@MFA-X-AI
MFA-X-AI merged commit 73ca1b6 into master Jul 25, 2025
@MFA-X-AI
MFA-X-AI deleted the fahreza/fix-mac- branch July 25, 2025 07:19
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