Skip to content
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

Dropdown: Prevent show of overlay when pressing meta key #2886

Closed
ian4uia opened this issue Aug 24, 2022 · 0 comments
Closed

Dropdown: Prevent show of overlay when pressing meta key #2886

ian4uia opened this issue Aug 24, 2022 · 0 comments
Assignees
Labels
Type: Enhancement Issue contains an enhancement related to a specific component. Additional functionality has been add
Milestone

Comments

@ian4uia
Copy link

ian4uia commented Aug 24, 2022

Describe the feature you would like to see added

From within the before-show event have the ability to prevent the options overlay from being shown. My use case is that I want the user to be able to 'save' my form by pressing the Ctrl-s key combination. If a Dropdown is in focus when the user performs this action I don't want the overlay to be displayed.

Is your feature request related to a problem?

No response

Describe the solution you'd like

I don't know if there is a pattern for handling this type of scenario but using the Vue-router onBeforeRouteLeave as an example maybe if the boolean false is returned from the before-show event then this will cancel / prevent the options overlay from being shown.

Describe alternatives you have considered

I don't know of any workaround.

Additional context

No response

@ian4uia ian4uia added the Type: Enhancement Issue contains an enhancement related to a specific component. Additional functionality has been add label Aug 24, 2022
@mertsincan mertsincan self-assigned this Aug 24, 2022
@mertsincan mertsincan added this to the 3.17.0 milestone Aug 24, 2022
@mertsincan mertsincan changed the title Dropdown: Prevent show of overlay from before-show event Dropdown: Prevent show of overlay when pressing meta key Aug 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Enhancement Issue contains an enhancement related to a specific component. Additional functionality has been add
Projects
None yet
Development

No branches or pull requests

2 participants