Skip to content

Commit

Permalink
Reverted onFocusChanged function in SelectableLazyColumn
Browse files Browse the repository at this point in the history
  • Loading branch information
lamba92 committed Oct 31, 2023
1 parent c7a2821 commit aeb2a26
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package org.jetbrains.jewel.foundation.lazy

import androidx.compose.foundation.focusGroup
import androidx.compose.foundation.focusable
import androidx.compose.foundation.gestures.FlingBehavior
import androidx.compose.foundation.gestures.ScrollableDefaults
Expand Down Expand Up @@ -73,10 +72,7 @@ fun SelectableLazyColumn(
val focusRequester = remember { FocusRequester() }
LazyColumn(
modifier = modifier
.onFocusChanged {
isFocused = it.isFocused || it.hasFocus
}
.focusGroup()
.onFocusChanged { isFocused = it.hasFocus }
.focusRequester(focusRequester)
.focusable(interactionSource = interactionSource)
.onPreviewKeyEvent { event ->
Expand Down

0 comments on commit aeb2a26

Please sign in to comment.