Improve wxTE_PROCESS_ENTER documentation
Explicitly mention that if no handler for wxEVT_TEXT_ENTER is defined (or if a handler exists, but skips the event), the default handling of "Enter" still takes place.
This commit is contained in:
@@ -41,9 +41,13 @@
|
|||||||
Sorts the entries in the list alphabetically. Notice that this style
|
Sorts the entries in the list alphabetically. Notice that this style
|
||||||
is not currently implemented in wxOSX.
|
is not currently implemented in wxOSX.
|
||||||
@style{wxTE_PROCESS_ENTER}
|
@style{wxTE_PROCESS_ENTER}
|
||||||
The control will generate the event @c wxEVT_TEXT_ENTER
|
The control will generate the event @c wxEVT_TEXT_ENTER that can be
|
||||||
(otherwise pressing Enter key is either processed internally by the
|
handled by the program. Otherwise, i.e. either if this style not
|
||||||
control or used for navigation between dialog controls).
|
specified at all, or it is used, but there is no event handler for
|
||||||
|
this event or the event handler called wxEvent::Skip() to avoid
|
||||||
|
overriding the default handling, pressing Enter key is either
|
||||||
|
processed internally by the control or used to activate the default
|
||||||
|
button of the dialog, if any.
|
||||||
@endStyleTable
|
@endStyleTable
|
||||||
|
|
||||||
@beginEventEmissionTable{wxCommandEvent}
|
@beginEventEmissionTable{wxCommandEvent}
|
||||||
|
@@ -941,9 +941,13 @@ public:
|
|||||||
|
|
||||||
@beginStyleTable
|
@beginStyleTable
|
||||||
@style{wxTE_PROCESS_ENTER}
|
@style{wxTE_PROCESS_ENTER}
|
||||||
The control will generate the event @c wxEVT_TEXT_ENTER
|
The control will generate the event @c wxEVT_TEXT_ENTER that can be
|
||||||
(otherwise pressing Enter key is either processed internally by the
|
handled by the program. Otherwise, i.e. either if this style not
|
||||||
control or used to activate the default button of the dialog, if any).
|
specified at all, or it is used, but there is no event handler for
|
||||||
|
this event or the event handler called wxEvent::Skip() to avoid
|
||||||
|
overriding the default handling, pressing Enter key is either
|
||||||
|
processed internally by the control or used to activate the default
|
||||||
|
button of the dialog, if any.
|
||||||
@style{wxTE_PROCESS_TAB}
|
@style{wxTE_PROCESS_TAB}
|
||||||
Normally, TAB key is used for keyboard navigation and pressing it in
|
Normally, TAB key is used for keyboard navigation and pressing it in
|
||||||
a control switches focus to the next one. With this style, this
|
a control switches focus to the next one. With this style, this
|
||||||
|
Reference in New Issue
Block a user