Android:什么是“?123"的KeyEvent.KEYCODE?软键盘上的键? [英] Android: What is the KeyEvent.KEYCODE for "?123" key on soft keyboard?

查看:129
本文介绍了Android:什么是“?123"的KeyEvent.KEYCODE?软键盘上的键?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要以编程方式按?123"键.但是我不知道该符号的KEYCODE.而且我也找不到.谁能知道软键盘上?123"符号的键盘代码.

I want to press "?123" key programmatically. But I don't know the KEYCODE for this symbol. And I also unable to find it. Can anybody know the KEYCODE for "?123" symbol on Soft Keyboard.

推荐答案

这不是实际的按键操作.

It's not an actual key press.

这只是用户更改键盘布局以能够按下符号等的一种方式.

It's just a way for the user to change the keyboard layout to be able to press on symbols etc.

我认为这甚至不能保证每个键盘都有它. Android上有许多自定义键盘,他们可以按自己想要的任何方式来制作它.

I think it's not even a guarantee that every keyboard has it. There are many custom keyboards on Android and they can make it any way they want it.

您应该自己考虑,您实际上想实现什么?例如插入#"?那么您应该只为此模拟键码.

You should think for yourself, what are you actually trying to achieve? to insert a "#" for example? then you should just simulate the keycode for that.

这篇关于Android:什么是“?123"的KeyEvent.KEYCODE?软键盘上的键?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆