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

Commit 6ace3f22 authored by Siarhei Vishniakou's avatar Siarhei Vishniakou
Browse files

Clarify usage of KeyEvent.keyCodeToString

KeyEvent.keyCodeToString is not really intended to be used for
user-facing tasks, and is not locale-specific. Clarify this in the
documentation.

Test: none
Bug: 77954533
Change-Id: I57cd217c1778824f119e48b2b30d61a72aad6525
parent 6a95233f
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -2920,6 +2920,9 @@ public class KeyEvent extends InputEvent implements Parcelable {
     * such as "KEYCODE_A", "KEYCODE_DPAD_UP", or an equivalent numeric constant
     * such as "1001" if unknown.
     *
     * This function is intended to be used mostly for debugging, logging, and testing. It is not
     * locale-specific and is not intended to be used in a user-facing manner.
     *
     * @param keyCode The key code.
     * @return The symbolic name of the specified keycode.
     *