Choices/src/scripts
Kris Reeves f73a16f383
Fix various "first press" bugs on single select dropdowns
On OS X, pressing the command key while a Choices select is focused
will add the text "meta". While looking into the details, I found
quite a few more errors surrounding the "first keypress" behavior.
When a closed select is focused, the following things generate
incorrect behavior:

- Any key while shift was previously held: the first character
  is incorrectly capitalized/lowercased
- If the keypress begins a "compose" input (e.g. option+` on mac)
  the value will be "dead"
- Various other non-printable keys also emit output, such as
  the arrow keys, media keys, etc.

Fix the entire category of behavior by better evaluating what
counts as a "printable" character.
2023-02-06 15:20:13 -08:00
..
actions Update dependencies, fix linting issues, split interfaces and default objects to resolve dependency cycles 2021-12-17 16:26:52 -05:00
components Search using non-sanitised input value 2021-12-30 22:05:03 -05:00
interfaces Fix typo on aria-labelledby attribute 2022-04-01 14:13:08 +02:00
lib Adding unit test and lint 2022-03-14 15:52:48 +01:00
reducers Update dependencies, fix linting issues, split interfaces and default objects to resolve dependency cycles 2021-12-17 16:26:52 -05:00
store Update dependencies, fix linting issues, split interfaces and default objects to resolve dependency cycles 2021-12-17 16:26:52 -05:00
choices.test.ts Merge pull request #991 from Choices-js/fuse6 2022-01-02 13:27:09 -05:00
choices.ts Fix various "first press" bugs on single select dropdowns 2023-02-06 15:20:13 -08:00
constants.test.ts feat: allowHTML 2021-12-23 16:59:48 +00:00
constants.ts Update dependencies, fix linting issues, split interfaces and default objects to resolve dependency cycles 2021-12-17 16:26:52 -05:00
defaults.ts Add option labelId to improve a11y (#971) 2022-01-18 17:07:07 -05:00
templates.test.ts Fix typo on aria-labelledby attribute 2022-04-01 14:13:08 +02:00
templates.ts Fix typo on aria-labelledby attribute 2022-04-01 14:13:08 +02:00