zulip/web
Prakhar Pratyush 9b43e5e3b3 empji_picker: Remove the usage of deprecated keypress event.
This commit removes the deprecated `keypress` event.

Now, we use the `keydown` event.

Earlier, we used `keypress` because it allowed us to distinguish
between lowercase and uppercase characters using `event.which`.

For example:
* For 'r':
  * keypress.which = 114
  * keydown.which = 82
* For 'R':
  * keypress.which = 82
  * keydown.which = 82

As shown, `keydown.which` cannot distinguish between 'r' and 'R',
which is why `keypress` was helpful.

Now, modern browsers support `event.key` on `keydown`, which directly
gives 'r' or 'R' as needed. This makes `keypress` unnecessary, and
we can safely rely on `keydown` with `event.key` to get the exact
character.

An earlier commit in this PR #34825, in which we replaced
the `event.which` with `event.key` plays a major role as a prep
commit to help removing `keypress` event in this commit.
2025-06-06 09:26:42 -07:00
..
e2e-tests dependencies: Upgrade JavaScript dependencies. 2025-06-04 16:24:47 -07:00
generated
html web: Sync content of Django and nginx error pages. 2025-04-03 17:09:46 -07:00
images icons: Let the system using the icons specify the fill-rule color. 2025-05-27 10:00:21 -07:00
server katex_server: Fix import/no-named-as-default. 2024-09-25 15:41:01 -07:00
shared icons: Rename zulip-icon-unmute-new to zulip-icon-unmute. 2025-06-05 17:05:24 -07:00
src empji_picker: Remove the usage of deprecated keypress event. 2025-06-06 09:26:42 -07:00
styles custom_profile_fields: Add "Alphabetize choices" button. 2025-06-05 17:11:05 -07:00
templates custom_profile_fields: Add "Alphabetize choices" button. 2025-06-05 17:11:05 -07:00
tests buddy_list: Set html instead of append for view all subscribers link. 2025-06-05 16:13:07 -07:00
third bootstrap: Rescue decoupled app, portico alert styles. 2025-04-30 10:26:20 -07:00
.browserslistrc browserslist: Add support for logical props. 2025-05-21 15:19:08 -07:00
.gitignore emoji: Convert spritesheets to webp. 2024-09-11 09:03:47 -07:00
babel.config.js dependencies: Upgrade JavaScript dependencies. 2025-05-05 14:15:44 -07:00
debug-require-webpack-plugin.ts debug-require: Rename to *.cjs. 2024-11-13 09:18:56 -08:00
debug-require.cjs debug-require: Rename to *.cjs. 2024-11-13 09:18:56 -08:00
postcss.config.js postcss: Work around postcss-extend-rule incompatibility with :is(). 2025-05-23 22:25:38 -07:00
webpack.assets.json integrations: Convert module to TypeScript. 2024-12-01 19:33:16 -08:00
webpack.config.ts webpack: Disable cross-origin-header-check middleware. 2025-04-15 16:18:06 -07:00
webpack.dev-assets.json showroom: Standardize "showroom" name for UI components testing pages. 2025-01-13 17:46:15 -08:00