mirror of
https://github.com/Suwayomi/TachideskJUI.git
synced 2025-12-10 06:42:05 +01:00
Support numpad enter
This commit is contained in:
@@ -24,7 +24,7 @@ fun Modifier.keyboardHandler(
|
||||
val focusManager = LocalFocusManager.current
|
||||
Modifier.onPreviewKeyEvent {
|
||||
if (it.type == KeyEventType.KeyDown) {
|
||||
if (singleLine && it.key == Key.Enter) {
|
||||
if (singleLine && (it.key == Key.Enter || it.key == Key.NumPadEnter)) {
|
||||
enterAction?.invoke(focusManager) ?: action(focusManager)
|
||||
true
|
||||
} else if (it.key == Key.Tab) {
|
||||
|
||||
Reference in New Issue
Block a user