Fixed clicking on empty diff wouldn't change the focus

This commit is contained in:
Abdelilah El Aissaoui 2022-11-05 01:13:22 +01:00
parent 4a90e1c757
commit dcf9ceb6a3

View File

@ -84,6 +84,10 @@ fun Diff(
.fillMaxSize()
.focusRequester(focusRequester)
.focusable()
.clickable(
interactionSource = remember { MutableInteractionSource() },
indication = null
) {}
.onPreviewKeyEvent { keyEvent ->
if (keyEvent.matchesBinding(KeybindingOption.EXIT)) {
onCloseDiffView()