TextInputFieldModel selectAll, bug or feature ?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

TextInputFieldModel selectAll, bug or feature ?

Marion Noirbent
Hi,

The message selectAll of TextInputFieldModel don't react like its super
class TextModel (selectAll is not define in TextInputFieldModel).

Is that a bug or a feature ?


Reproduce:

|example|
example := TextInputFieldModel new.
example text: 'dfghjklm'.
example openWithSpec .
example selectAll.
example inspect

selection have value (1 to: 0) (but appear like selected when its window
is selected).


Its super class:

|example|
example := TextModel new.
example text: 'dfghjklm'.
example openWithSpec .
example selectAll.
example inspect

selection have value (1 to: 8)

Reply | Threaded
Open this post in threaded view
|

Re: TextInputFieldModel selectAll, bug or feature ?

Nicolai Hess-3-2


2016-07-12 11:38 GMT+02:00 Marion Noirbent <[hidden email]>:
Hi,

The message selectAll of TextInputFieldModel don't react like its super
class TextModel (selectAll is not define in TextInputFieldModel).

Is that a bug or a feature ?

A bug.

MorphicTextInputFieldAdapter needs to set the #setSelection: selector on the PluggableTextFieldMorph.
 


Reproduce:

|example|
example := TextInputFieldModel new.
example text: 'dfghjklm'.
example openWithSpec .
example selectAll.
example inspect

selection have value (1 to: 0) (but appear like selected when its window
is selected).


Its super class:

|example|
example := TextModel new.
example text: 'dfghjklm'.
example openWithSpec .
example selectAll.
example inspect

selection have value (1 to: 8)