当我在 Lwuit 移动应用程序中按 # 键时如何调用退出命令?
我可以将 Exit
命令分配给 Lwuit 应用程序中的 # 键吗?当我按下 # 键时,应自动调用 Exit
命令并退出应用程序。
Can I assign the Exit
Command to the # key in an Lwuit Application? When I press the key #, the Exit
command should be called automatically and exit the application.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您应该在表单上监听 KeyPress 或 keyReleased 事件,并在按下 # 键时使用 # 的键码并退出应用程序。
You should listen for a KeyPress or keyReleased event on the form with the keycode for # and exitApplication when the # key is pressed.