When in the Insert tab, the tool tip on the MySQL function dropdown says "Shift + CLick on function name to apply to all rows" but I have tried with Firefox and Chrome and can't get it to apply to all rows.
Selection is captured with $(document).on('click', "select[name*='funcs']", function (event) {
});
In Chrome, while this correctly captures click events on both select and its options, information on whether the shift key is pressed is only present for the former.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Shift + Click on a dropdown option is non standard. Browsers do not detect click event on <option> and that is why click event being propagated to <select> is being detected. So, I wonder whether Shift + click is a good choice after all.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Works in Firefox 38 and IE 11. Bug can be reproduced in Chrome 43
Selection is captured with
$(document).on('click', "select[name*='funcs']", function (event) { });
In Chrome, while this correctly captures click events on both select and its options, information on whether the shift key is pressed is only present for the former.
Shift + Click on a dropdown option is non standard. Browsers do not detect click event on
<option>
and that is why click event being propagated to<select>
is being detected. So, I wonder whether Shift + click is a good choice after all.We could just remove this minor feature.
That would be fine by me.
Ok, I am removing this feature.
Feature removed in https://github.com/phpmyadmin/phpmyadmin/commit/4e937d99180ed4f580cc1458bb898ee8028f4543