Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

feat: add upload menu shortcuts #1529

Merged
merged 4 commits into from
Dec 18, 2024
Merged

feat: add upload menu shortcuts #1529

merged 4 commits into from
Dec 18, 2024

Conversation

skjnldsv
Copy link
Contributor

Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
@skjnldsv skjnldsv added enhancement New feature or request 3. to review Waiting for reviews 🍀 2025-Spring labels Dec 18, 2024
@skjnldsv skjnldsv self-assigned this Dec 18, 2024

This comment was marked as resolved.

@@ -32,38 +32,11 @@ window._oc_capabilities = { files: {} }

// Example use:
// cy.mount(MyComponent)
Cypress.Commands.add('mount', (component, optionsOrProps) => {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

See Ferdinand's comment on this: nextcloud/server#48725 (comment)

Comment on lines +491 to +507
onKeyDown(event: KeyboardEvent) {
// Shift + u opens the menu
if (event.key === 'u') {
// If we have a menu, open it
if (this.haveMenu) {
this.openedMenu = true
return
}

// Otherwise, trigger the default action
this.onTriggerPick()
}

if (event.key === 'Escape' && this.openedMenu) {
this.openedMenu = false
}
},
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The important part

Copy link

@nfebe nfebe left a comment

Choose a reason for hiding this comment

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

Review based on the "important part" 🚀

Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
@skjnldsv skjnldsv force-pushed the feat/keyboard-shortcut branch from 9ec5f71 to 42269c4 Compare December 18, 2024 11:00
@skjnldsv skjnldsv enabled auto-merge December 18, 2024 11:01
@skjnldsv skjnldsv merged commit 6184c17 into main Dec 18, 2024
17 checks passed
@skjnldsv skjnldsv deleted the feat/keyboard-shortcut branch December 18, 2024 11:03
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
3. to review Waiting for reviews enhancement New feature or request 🍀 2025-Spring
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants