|
@@ -704,19 +704,17 @@ fun BoxScope.AddRowSmartTV(
|
|
) {
|
|
) {
|
|
ClickableText(
|
|
ClickableText(
|
|
modifier = Modifier
|
|
modifier = Modifier
|
|
-// .onKeyEvent {
|
|
|
|
-// when (it.key) {
|
|
|
|
-// Key.DirectionLeft -> {
|
|
|
|
-// Log.d("test_settings_keys","DirectionDown")
|
|
|
|
-// Toast.makeText(
|
|
|
|
-// context, "DirectionLeft", Toast.LENGTH_SHORT
|
|
|
|
-// ).show()
|
|
|
|
-//// focusRequester2.requestFocus()
|
|
|
|
-// true
|
|
|
|
-// }
|
|
|
|
-// else -> { true }
|
|
|
|
-// }
|
|
|
|
-// }
|
|
|
|
|
|
+ .onKeyEvent {
|
|
|
|
+ when (it.key) {
|
|
|
|
+ Key.DirectionLeft -> {
|
|
|
|
+ Toast.makeText(
|
|
|
|
+ context, "DirectionLeft Change", Toast.LENGTH_SHORT
|
|
|
|
+ ).show()
|
|
|
|
+ true
|
|
|
|
+ }
|
|
|
|
+ else -> { false }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
.focusRequester(focusRequester2)
|
|
.focusRequester(focusRequester2)
|
|
.onFocusChanged {
|
|
.onFocusChanged {
|
|
isButtonFocused = it.isFocused
|
|
isButtonFocused = it.isFocused
|