[racket-dev] [plt] Push #22426: master branch updated

From: Robby Findler (robby at eecs.northwestern.edu)
Date: Mon Apr 11 08:42:13 EDT 2011

On Sun, Apr 10, 2011 at 9:41 PM, Jon Rafkind <rafkind at cs.utah.edu> wrote:
> On 04/10/2011 08:34 PM, Robby Findler wrote:
>> On Sun, Apr 10, 2011 at 9:24 PM, Jon Rafkind <rafkind at cs.utah.edu> wrote:
>>> If I cilck on the line:column thing in the toolbar area next to the gc
>>> icon it and select 'show line and column numbers' then the line:column
>>> becomes hidden. If I then click in the same area to bring up the popup I
>>> see that 'show line and column numbers' is still selected and clicking
>>> it does not bring back the line:column display.
>> That's because the focus is no longer on an editor, but on that thing
>> you clicked on.
>> Probably I should make the focus go back where it was (I think that
>> information's there).
> Ah, if I click on the interactions pane after changing the line:column
> display then the line:column/character-offset display properly updates.
> So yes, updating the focus sounds like the right thing.

Looks like I just needed to pass 'no-focus in the style list for the
canvas% that implements the line/number control. So ... that was easy!
No need to explicitly send the focus back.


Posted on the dev mailing list.