Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 610fc845 authored by Michal Brzezinski's avatar Michal Brzezinski
Browse files

Renaming META to ACTION in sticky key indicator

Fixes: 323165418
Flag: ACONFIG com.android.hardware.input.keyboard_a11y_sticky_keys_flag TRUNKFOOD
Test: trigger sticky key indicator with meta/action button and see name "ACTION"
Change-Id: I7af026d5a2618cdc838766d0fd7a5c97329378e3
parent 20e979cb
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -53,7 +53,7 @@ fun StickyKeysIndicator(stickyKeys: Map<ModifierKey, Locked>, modifier: Modifier
            stickyKeys.forEach { (key, isLocked) ->
                key(key) {
                    Text(
                        text = key.text,
                        text = key.displayedText,
                        fontWeight = if (isLocked.locked) FontWeight.Bold else FontWeight.Normal
                    )
                }
+2 −2
Original line number Diff line number Diff line
@@ -19,10 +19,10 @@ package com.android.systemui.keyboard.stickykeys.shared.model
@JvmInline
value class Locked(val locked: Boolean)

enum class ModifierKey(val text: String) {
enum class ModifierKey(val displayedText: String) {
    ALT("ALT LEFT"),
    ALT_GR("ALT RIGHT"),
    CTRL("CTRL"),
    META("META"),
    META("ACTION"),
    SHIFT("SHIFT"),
}