0

For example, some magical function

public String function(int key) {}

so that

function(KeyEvent.VK_A) would return "A"

function(KeyEvent.VK_DOWN) would return "DOWN"

function(KeyEvent.VK_COMMA) would return "COMMA"

user1778856
  • 641
  • 4
  • 10
  • 17

2 Answers2

0

Never mind... I found public static String getKeyText(int keyCode)

user1778856
  • 641
  • 4
  • 10
  • 17
0

You can use getKeyText(int keyCode) on your KeyEvent

andreih
  • 423
  • 1
  • 6
  • 19