Removed redundant code
This commit is contained in:
parent
3611f3339c
commit
226f6a67ff
1 changed files with 2 additions and 2 deletions
|
@ -332,14 +332,14 @@ fun SearchFilter(
|
||||||
.focusRequester(textFieldFocusRequester)
|
.focusRequester(textFieldFocusRequester)
|
||||||
.onPreviewKeyEvent { keyEvent ->
|
.onPreviewKeyEvent { keyEvent ->
|
||||||
when {
|
when {
|
||||||
keyEvent.matchesBinding(KeybindingOption.SIMPLE_ACCEPT) && keyEvent.type == KeyEventType.KeyDown -> {
|
keyEvent.matchesBinding(KeybindingOption.SIMPLE_ACCEPT) -> {
|
||||||
scope.launch {
|
scope.launch {
|
||||||
logViewModel.selectNextFilterCommit()
|
logViewModel.selectNextFilterCommit()
|
||||||
}
|
}
|
||||||
true
|
true
|
||||||
}
|
}
|
||||||
|
|
||||||
keyEvent.matchesBinding(KeybindingOption.EXIT) && keyEvent.type == KeyEventType.KeyDown -> {
|
keyEvent.matchesBinding(KeybindingOption.EXIT) -> {
|
||||||
logViewModel.closeSearch()
|
logViewModel.closeSearch()
|
||||||
true
|
true
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue