From 5e428dc3f9e324a49fdab1611ff6c17c45e21ab3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=BC=93=E6=B1=9F=E4=B8=BD=E7=81=AB?= <909134790@qq.com> Date: Fri, 1 Sep 2023 20:29:32 +0800 Subject: [PATCH] Update Keyboard.md --- doc/Keyboard.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/Keyboard.md b/doc/Keyboard.md index 0e0e4550..1e60b44c 100644 --- a/doc/Keyboard.md +++ b/doc/Keyboard.md @@ -23,7 +23,7 @@ public class GlobalKeyListenerExample implements NativeKeyListener { } public void nativeKeyTyped(NativeKeyEvent e) { - System.out.println("Key Typed: " + e.getKeyText(e.getKeyCode())); + System.out.println("Key Typed: " + NativeKeyEvent.getKeyText(e.getKeyCode())); } public static void main(String[] args) {