From 0cbf3f40a496a36e7bf8e4ad40442156f00f7643 Mon Sep 17 00:00:00 2001 From: stib Date: Sun, 15 May 2022 00:27:41 +1000 Subject: [PATCH 1/2] added onEnterKey as a editText callback This wasn't listed as a callback but it works, unlike {enterKeySignalsOnChange: true} in the creation properties --- docs/user-interface-tools/control-objects.rst | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/user-interface-tools/control-objects.rst b/docs/user-interface-tools/control-objects.rst index 04a25d0..8da9f98 100644 --- a/docs/user-interface-tools/control-objects.rst +++ b/docs/user-interface-tools/control-objects.rst @@ -1914,6 +1914,14 @@ The list's ``selection`` property is set to the clicked item. -------------------------------------------------------------------------------- +.. _control-event-onenterkey: + +onEnterKey +************* +Called when the user presses return or enter in a :ref:`control-type-edittext` control. + +-------------------------------------------------------------------------------- + .. _control-event-ondraw: onDraw From 7d0571e0ff78c9341a1893bfb3813f226ab4e0e2 Mon Sep 17 00:00:00 2001 From: Zack Lovatt Date: Fri, 31 Jan 2025 17:23:41 -0500 Subject: [PATCH 2/2] Add undocumented note --- docs/user-interface-tools/control-objects.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/user-interface-tools/control-objects.rst b/docs/user-interface-tools/control-objects.rst index 8da9f98..bc2757f 100644 --- a/docs/user-interface-tools/control-objects.rst +++ b/docs/user-interface-tools/control-objects.rst @@ -1918,6 +1918,10 @@ The list's ``selection`` property is set to the clicked item. onEnterKey ************* + +.. warning:: + This method/property is officially undocumented and was found via research. The information here may be inaccurate, and this whole method/property may disappear or stop working some point. Please contribute if you have more information on it! + Called when the user presses return or enter in a :ref:`control-type-edittext` control. --------------------------------------------------------------------------------