Fixed clicking on empty diff wouldn't change the focus
This commit is contained in:
parent
4a90e1c757
commit
dcf9ceb6a3
@ -84,6 +84,10 @@ fun Diff(
|
|||||||
.fillMaxSize()
|
.fillMaxSize()
|
||||||
.focusRequester(focusRequester)
|
.focusRequester(focusRequester)
|
||||||
.focusable()
|
.focusable()
|
||||||
|
.clickable(
|
||||||
|
interactionSource = remember { MutableInteractionSource() },
|
||||||
|
indication = null
|
||||||
|
) {}
|
||||||
.onPreviewKeyEvent { keyEvent ->
|
.onPreviewKeyEvent { keyEvent ->
|
||||||
if (keyEvent.matchesBinding(KeybindingOption.EXIT)) {
|
if (keyEvent.matchesBinding(KeybindingOption.EXIT)) {
|
||||||
onCloseDiffView()
|
onCloseDiffView()
|
||||||
|
Loading…
Reference in New Issue
Block a user