Extract focus_search
dispatch action into enum (#12721)
* Extract `focus_search` dispatch action into enum Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * copypasta Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --------- Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
b0d2010247
commit
6b90fe20ab
4 changed files with 21 additions and 4 deletions
|
@ -458,9 +458,7 @@ class LoggedInView extends React.Component<IProps, IState> {
|
|||
handled = true;
|
||||
break;
|
||||
case KeyBindingAction.SearchInRoom:
|
||||
dis.dispatch({
|
||||
action: "focus_search",
|
||||
});
|
||||
dis.fire(Action.FocusMessageSearch);
|
||||
handled = true;
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue