Get the key pressed in an EditText

前端 未结 2 1284
遥遥无期
遥遥无期 2021-01-19 10:08

I want to know which key has been pressed in an EditText. For example, if a is pressed, I want to get the value as \'a\'. How can I do this?

2条回答
提交回复
热议问题