-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
CTRL + F5 not working while dropdown is open #2321
Comments
Released in v1.13.12! |
Don't work on Chrome |
Works on Chrome 83. |
Not work on Chrome 83.0.4103.106 for MacOS (cmd + R) |
Same here, MacOS, Chrome 83.0.4103.116, dropdown steals cmd + R shortcut. |
The dropdown seems to prevent all cmd related shortcuts. |
Solved this by listening to the $(document).keydown(e => {
if ([17, 91, 93, 224].includes(e.keyCode)) {
let $1 = $("select + .dropdown-toggle:focus")
if ($1.length) $1.blur()
let $2 = $("select + button + .dropdown-menu.show")
if ($2.length) $2.prev().prev().selectpicker("toggle")
}
}) Made some changes, now it also works when the dropdown is open (was focus only before) |
Same bug you have on examle page https://developer.snapappointments.com/bootstrap-select/examples/
The text was updated successfully, but these errors were encountered: