[squeak-dev] Another oddity
marcel.taeumel at hpi.de
Thu Jun 11 06:32:21 UTC 2020
Yes, it was the simplest way to implement key-press response with sync between textfield and list-filter state. It occasionally bugs me too. See ListChooser >> #filterEvent:for: and the end of #buildWith:.
One could forward #textEdited: from the input field to set the list's item filter. Yet, there is no way to forward a "filter changed" event to the text field. Well, you could choose to only install the keyboard-event filter for the list morph and combine that with #textEdited:. Then you would spread the sync code across 2 methods, but you could improve the user experience. :-)
Am 10.06.2020 18:15:03 schrieb karl ramberg <karlramberg at gmail.com>:
I can confirm this bug in Squeak Trunk 6 19722
On Tue, Jun 9, 2020 at 2:06 PM Trygve Reenskaug <trygver at ifi.uio.no [mailto:trygver at ifi.uio.no]> wrote:
Smalltalk version 'Squeak5.3'
* I open a new browser from WorldMenu
* I write ctrl-f in upper-left pane
* Browser asks: Class name or fragment?
* I write Pbject
* I place text cursor just after the P
* I key in backspace, O
* result PbjecO
Text cursor placement seems to be ignored.
The essence of object orientation is that objects collaborate to achieve a goal.
Trygve Reenskaug mailto: trygver at ifi.uio.no [mailto:%20trygver at ifi.uio.no]
Morgedalsvn. 5A http://folk.uio.no/trygver/ [http://folk.uio.no/trygver/]
N-0378 Oslo http://fullOO.info [http://fullOO.info]
Norway Tel: (+47) 468 58 625
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Squeak-dev