-
Notifications
You must be signed in to change notification settings - Fork 928
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
Declare shortcut CTRL+D to duplicate in object list #6273
Conversation
canDuplicateObject: boolean, | ||
onDuplicateObject: () => void, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure what to do with this, because the fonction duplicate is called in newIDE/app/src/ObjectsList/index.js
L 1424
Any help on it? |
I corrected accelerator and grouped onDelete with onDuplicate. I also added a comment to the one above the instantiation of keyboardShortcutsRef.
7ee0aed
to
499c10d
Compare
I didn't realize I chose the same branch name as you did, sorry for overwriting your commits. When merged, the PR #6670 should be closed (@osmaneTKT you will be mentioned as co-author and will be credited in the final commit). |
preferences.values.userShortcutMap['RENAME_SCENE_OBJECT'] || | ||
defaultShortcuts.RENAME_SCENE_OBJECT | ||
), | ||
accelerator: 'F2', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
does this mean the shortcut cannot be remapped by the user?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same for below
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes. It's not possible with the KeyboardsShortcuts component but it's safer now to me. And the shortcuts are standard
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok, fine by me
Fix #6194