mirror of https://github.com/zulip/zulip.git
94459f1425
We use e.key for our side of code and still pass e.keyCode and e.which to the custom jQuery event we trigger. The event is handled by our patched copy of outdated bootstrap and it still requires the e.keyCode and e.which properties. One of the places this widget is used is in the settings panel, at Manage Organization > Organization Settings > Notifications > New stream notifications. One of the handler is attached to the dropdown menu items that shows up when you click the "#announce" button. The other one is attached to the search button. The second one triggers the custom jQuery event and passes the event data to bootstrap unless the Up & Down arrow or Esacape is used. The first event handler handles the Enter click on one of the items and saves it. Verified that the widget works as expected. |
||
---|---|---|
.. | ||
assets | ||
audio | ||
generated | ||
html | ||
images | ||
js | ||
shared | ||
styles | ||
templates | ||
third | ||
.gitignore |