mirror of https://github.com/zulip/zulip.git
dropdown_list_widget: Rename dropdown_focus_events.
This commit renames dropdown_focus_events function in DropdownListWidget and MultiSelectDropdownListWidget components to dropdown_keyboard_events, as we will be adding other keyboard events to select an option in this function further commits.
This commit is contained in:
parent
b821c90f44
commit
fc251fd464
|
@ -141,7 +141,7 @@ export class DropdownListWidget {
|
|||
});
|
||||
}
|
||||
|
||||
dropdown_focus_events() {
|
||||
dropdown_keyboard_events() {
|
||||
const $search_input = $(
|
||||
`#${CSS.escape(this.container_id)} .dropdown-search > input[type=text]`,
|
||||
);
|
||||
|
@ -235,7 +235,7 @@ export class DropdownListWidget {
|
|||
}
|
||||
});
|
||||
|
||||
this.dropdown_focus_events();
|
||||
this.dropdown_keyboard_events();
|
||||
|
||||
this.render(this.initial_value);
|
||||
this.register_event_handlers();
|
||||
|
@ -456,7 +456,7 @@ export class MultiSelectDropdownListWidget extends DropdownListWidget {
|
|||
tippy_instance.destroy();
|
||||
}
|
||||
|
||||
dropdown_focus_events() {
|
||||
dropdown_keyboard_events() {
|
||||
// Main keydown event handler which transfers the focus from one child element
|
||||
// to another.
|
||||
|
||||
|
|
Loading…
Reference in New Issue