Fixed enter not working to accept tag name

This commit is contained in:
Abdelilah El Aissaoui 2022-08-06 21:06:22 +02:00
parent 00d95b6feb
commit 2e839a284f

View File

@ -44,7 +44,7 @@ fun NewTagDialog(
} }
.width(300.dp) .width(300.dp)
.onPreviewKeyEvent { keyEvent -> .onPreviewKeyEvent { keyEvent ->
if (keyEvent.matchesBinding(KeybindingOption.SIMPLE_ACCEPT) && tagField.isBlank()) { if (keyEvent.matchesBinding(KeybindingOption.SIMPLE_ACCEPT) && tagField.isNotBlank()) {
onAccept(tagField) onAccept(tagField)
true true
} else { } else {