mirror of
https://github.com/Choices-js/Choices.git
synced 2024-06-01 13:32:23 +02:00
onKeyDown on containerOuter to enable keyboard navigation
This commit is contained in:
parent
1c268a1e5d
commit
994e20a4c3
|
@ -629,7 +629,7 @@ export class Choices {
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
_onKeyDown(e) {
|
_onKeyDown(e) {
|
||||||
if(e.target !== this.input) return;
|
if(e.target !== this.input && e.target !== this.containerOuter) return;
|
||||||
|
|
||||||
const ctrlDownKey = e.ctrlKey || e.metaKey;
|
const ctrlDownKey = e.ctrlKey || e.metaKey;
|
||||||
const backKey = 46;
|
const backKey = 46;
|
||||||
|
|
Loading…
Reference in a new issue