-
Notifications
You must be signed in to change notification settings - Fork 159
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
[full-ci] Keyboard navigation disable for inputs #7648
Conversation
Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would create a changelog item based on your changes. |
packages/web-app-files/src/components/FilesList/KeyboardActions.vue
Outdated
Show resolved
Hide resolved
Results for oCISSharingBasic https://drone.owncloud.com/owncloud/web/28384/54/1 💥 The oCISSharingBasic tests pipeline failed. The build has been cancelled. |
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.
LGTM, one objection, but personal style I guess
@@ -86,6 +86,8 @@ export default defineComponent({ | |||
}), | |||
|
|||
areCustomKeyBindingsEnabled() { | |||
const activeElementTag = document.activeElement.tagName | |||
if (['textarea', 'input', 'select'].includes(activeElementTag.toLowerCase())) return true |
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.
Personally not a fan of the inline return without {}
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. Code style in web and related repos is to not inline return statements.
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.
Tried to find a eslint rule set plugin, but nothing found unfortantly
ba505a6
to
3a180b5
Compare
Kudos, SonarCloud Quality Gate passed! |
Description
Disable keyboard navigation on textarea and input
Types of changes
Checklist: