[BUG][DUMB USER] Refactoring Browser
Lex Spoon
lex at cc.gatech.edu
Sat Oct 26 18:23:18 UTC 2002
danielv at netvision.net.il wrote:
> About the naming dialog, actually, I'd like it to auto accept whatever
> is typed in the line above, and lock up the display line, so it can't be
> edited by mistake, but there's much I don't know about Morphic, and
> those two are part of it. I'd be glad to improve that, so if anyone has
> hints, snippets...
>
Yeah, this really bugs me as well. Unfortunately I don't see a real
easy way to solve it. What is wanted, I believe, for accept/cancel to
work on the level of an entire dialogue, but right now it happens with
each input field individually. I usually solve this by having the
target of the "do it" button manually call #accept on all of the text
morphs before proceeding, but it's a very klunky solution.
I guess a simple thing that would help a little is to make text morphs
auto-accept whenever they lose focus. I notice that this is how some of
the string-editors in the omni-user environment work. It should be
reasonable to add yet one more flag to PluggableTextMorph for this, and
to check for it in mouseLeave:.
On a related note, we may wish to change to Escape instead of or in
addition to alt-l at some point for "cancel". This is more familiar to
most people.
Lex
More information about the Squeak-dev
mailing list
|