Rabbit-R1/android (non root)/java/sources/androidx/compose/foundation/text/KeyMapping_androidKt.java

50 lines
3.2 KiB
Java
Raw Normal View History

2024-05-21 21:08:36 +00:00
package androidx.compose.foundation.text;
import android.view.KeyEvent;
import androidx.compose.ui.input.key.Key;
import androidx.compose.ui.input.key.KeyEvent_androidKt;
import kotlin.Metadata;
import kotlin.jvm.internal.Intrinsics;
/* compiled from: KeyMapping.android.kt */
@Metadata(d1 = {"\u0000\n\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\"\u0014\u0010\u0000\u001a\u00020\u0001X\u0080\u0004¢\u0006\b\n\u0000\u001a\u0004\b\u0002\u0010\u0003¨\u0006\u0004"}, d2 = {"platformDefaultKeyMapping", "Landroidx/compose/foundation/text/KeyMapping;", "getPlatformDefaultKeyMapping", "()Landroidx/compose/foundation/text/KeyMapping;", "foundation_release"}, k = 2, mv = {1, 8, 0}, xi = 48)
/* loaded from: classes.dex */
public final class KeyMapping_androidKt {
private static final KeyMapping platformDefaultKeyMapping = new KeyMapping() { // from class: androidx.compose.foundation.text.KeyMapping_androidKt$platformDefaultKeyMapping$1
@Override // androidx.compose.foundation.text.KeyMapping
/* renamed from: map-ZmokQxo */
public KeyCommand mo769mapZmokQxo(KeyEvent event) {
Intrinsics.checkNotNullParameter(event, "event");
KeyCommand keyCommand = null;
if (KeyEvent_androidKt.m3631isShiftPressedZmokQxo(event) && KeyEvent_androidKt.m3628isAltPressedZmokQxo(event)) {
long m3625getKeyZmokQxo = KeyEvent_androidKt.m3625getKeyZmokQxo(event);
if (Key.m3317equalsimpl0(m3625getKeyZmokQxo, MappedKeys.INSTANCE.m789getDirectionLeftEK5gGoQ())) {
keyCommand = KeyCommand.SELECT_LINE_LEFT;
} else if (Key.m3317equalsimpl0(m3625getKeyZmokQxo, MappedKeys.INSTANCE.m790getDirectionRightEK5gGoQ())) {
keyCommand = KeyCommand.SELECT_LINE_RIGHT;
} else if (Key.m3317equalsimpl0(m3625getKeyZmokQxo, MappedKeys.INSTANCE.m791getDirectionUpEK5gGoQ())) {
keyCommand = KeyCommand.SELECT_HOME;
} else if (Key.m3317equalsimpl0(m3625getKeyZmokQxo, MappedKeys.INSTANCE.m788getDirectionDownEK5gGoQ())) {
keyCommand = KeyCommand.SELECT_END;
}
} else if (KeyEvent_androidKt.m3628isAltPressedZmokQxo(event)) {
long m3625getKeyZmokQxo2 = KeyEvent_androidKt.m3625getKeyZmokQxo(event);
if (Key.m3317equalsimpl0(m3625getKeyZmokQxo2, MappedKeys.INSTANCE.m789getDirectionLeftEK5gGoQ())) {
keyCommand = KeyCommand.LINE_LEFT;
} else if (Key.m3317equalsimpl0(m3625getKeyZmokQxo2, MappedKeys.INSTANCE.m790getDirectionRightEK5gGoQ())) {
keyCommand = KeyCommand.LINE_RIGHT;
} else if (Key.m3317equalsimpl0(m3625getKeyZmokQxo2, MappedKeys.INSTANCE.m791getDirectionUpEK5gGoQ())) {
keyCommand = KeyCommand.HOME;
} else if (Key.m3317equalsimpl0(m3625getKeyZmokQxo2, MappedKeys.INSTANCE.m788getDirectionDownEK5gGoQ())) {
keyCommand = KeyCommand.END;
}
}
return keyCommand == null ? KeyMappingKt.getDefaultKeyMapping().mo769mapZmokQxo(event) : keyCommand;
}
};
public static final KeyMapping getPlatformDefaultKeyMapping() {
return platformDefaultKeyMapping;
}
}