|
@@ -504,45 +504,33 @@ fun ColumnScope.AddRowSettingsColumnTV(
|
|
|
.clip(RoundedCornerShape(4.dp))
|
|
|
.background(if (isFirstRowFocused) Color.LightGray else Color.White)
|
|
|
.height(61.dp)
|
|
|
- .onKeyEvent {
|
|
|
- when (it.key) {
|
|
|
- Key.DirectionDown -> {
|
|
|
- Log.d("test_settings_keys", "DirectionDown")
|
|
|
-// Toast
|
|
|
-// .makeText(
|
|
|
-// context, "DirectionDown", Toast.LENGTH_SHORT
|
|
|
-// )
|
|
|
-// .show()
|
|
|
- focusRequester2.requestFocus()
|
|
|
- true
|
|
|
- }
|
|
|
- Key.DirectionLeft -> {
|
|
|
- Log.d("test_settings_keys", "DirectionLeft")
|
|
|
-// Toast
|
|
|
-// .makeText(
|
|
|
-// context, "DirectionLeft", Toast.LENGTH_SHORT
|
|
|
-// )
|
|
|
-// .show()
|
|
|
- customNavigation(navHostController = navHostController, screen = BottomBarScreen.Settings)
|
|
|
- true
|
|
|
- }
|
|
|
-//
|
|
|
-// Key.DirectionRight -> {
|
|
|
-// Log.d("test_settings_keys", "DirectionRight")
|
|
|
-// Toast
|
|
|
-// .makeText(
|
|
|
-// context, "DirectionRight", Toast.LENGTH_SHORT
|
|
|
-// )
|
|
|
-// .show()
|
|
|
-// customNavigation(navHostController = navHostController, screen = BottomBarScreen.Help)
|
|
|
+// .onKeyEvent {
|
|
|
+// when (it.key) {
|
|
|
+// Key.DirectionDown -> {
|
|
|
+// Log.d("test_settings_keys", "DirectionDown")
|
|
|
+//// Toast
|
|
|
+//// .makeText(
|
|
|
+//// context, "DirectionDown", Toast.LENGTH_SHORT
|
|
|
+//// )
|
|
|
+//// .show()
|
|
|
+// focusRequester2.requestFocus()
|
|
|
// true
|
|
|
// }
|
|
|
-
|
|
|
- else -> {
|
|
|
- false
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
+// Key.DirectionLeft -> {
|
|
|
+// Log.d("test_settings_keys", "DirectionLeft")
|
|
|
+//// Toast
|
|
|
+//// .makeText(
|
|
|
+//// context, "DirectionLeft", Toast.LENGTH_SHORT
|
|
|
+//// )
|
|
|
+//// .show()
|
|
|
+//// customNavigation(navHostController = navHostController, screen = BottomBarScreen.Settings)
|
|
|
+// true
|
|
|
+// }
|
|
|
+// else -> {
|
|
|
+// false
|
|
|
+// }
|
|
|
+// }
|
|
|
+// }
|
|
|
.focusRequester(focusRequester1)
|
|
|
.onFocusChanged {
|
|
|
isFirstRowFocused = it.isFocused
|