Added field focus when opening branch and credentials dialogs
This commit is contained in:
parent
e6cd822b17
commit
c465b89b61
@ -2,21 +2,15 @@ package app.ui
|
||||
|
||||
import androidx.compose.animation.Crossfade
|
||||
import androidx.compose.foundation.layout.*
|
||||
import androidx.compose.material.*
|
||||
import androidx.compose.runtime.*
|
||||
import androidx.compose.ui.Alignment
|
||||
import androidx.compose.ui.Modifier
|
||||
import androidx.compose.ui.text.TextStyle
|
||||
import androidx.compose.ui.text.input.PasswordVisualTransformation
|
||||
import androidx.compose.ui.unit.dp
|
||||
import androidx.compose.ui.unit.sp
|
||||
import androidx.compose.ui.window.Dialog
|
||||
import app.DialogManager
|
||||
import app.credentials.CredentialsState
|
||||
import app.git.DiffEntryType
|
||||
import app.git.GitManager
|
||||
import app.git.dialogs.NewBranchDialog
|
||||
import app.git.dialogs.UserPasswordDialog
|
||||
import app.ui.dialogs.NewBranchDialog
|
||||
import app.ui.dialogs.UserPasswordDialog
|
||||
import openRepositoryDialog
|
||||
import org.eclipse.jgit.revwalk.RevCommit
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
package app.git.dialogs
|
||||
package app.ui.dialogs
|
||||
|
||||
import androidx.compose.foundation.background
|
||||
import androidx.compose.foundation.layout.*
|
||||
@ -68,4 +68,8 @@ fun NewBranchDialog(
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
LaunchedEffect(Unit) {
|
||||
branchFieldFocusRequester.requestFocus()
|
||||
}
|
||||
}
|
@ -1,4 +1,4 @@
|
||||
package app.git.dialogs
|
||||
package app.ui.dialogs
|
||||
|
||||
import androidx.compose.foundation.background
|
||||
import androidx.compose.foundation.layout.*
|
||||
@ -12,7 +12,6 @@ import androidx.compose.ui.text.TextStyle
|
||||
import androidx.compose.ui.text.input.PasswordVisualTransformation
|
||||
import androidx.compose.ui.unit.dp
|
||||
import androidx.compose.ui.unit.sp
|
||||
import androidx.compose.ui.window.Dialog
|
||||
|
||||
@Composable
|
||||
fun UserPasswordDialog(
|
||||
@ -96,4 +95,8 @@ fun UserPasswordDialog(
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
LaunchedEffect(Unit) {
|
||||
userFieldFocusRequester.requestFocus()
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user