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:
Sahil Batra 2023-04-07 16:48:18 +05:30 committed by Tim Abbott
parent b821c90f44
commit fc251fd464
1 changed files with 3 additions and 3 deletions

View File

@ -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.