StupidBeauty
Read times:366Posted at:Wed Oct 26 04:11:17 2011
- no title specified

Wt3.1.9文档翻译:Wt::WInteractWidget类参考,Wt::WInteractWidget Class Reference

成员函数文档

EventSignal & Wt::WInteractWidget::enterPressed

(

)

当回车键被按下时所发射的事件信号。

当Enter(回车键)或Return(小键盘回车键)被按下时,会发射这个信号。

表单部件(比如WLineEdit)在拥有焦点时会接收键盘事件。其它部件如果包含(直接或间接)一个拥有焦点的表单部件的话,也会接收键盘事件。

在没有任何部件拥有焦点的情况下,要想捕获回车键,就要使用WApplication::globalEnterPressed()

参考:

keyPressed(), Key_Enter

Your opinions
Your name:Email:Website url:Opinion content:
- no title specified

HxLauncher: Launch Android applications by voice commands