From: jamshed on
I have following toolbar, i would like to bind keyboad Control+F key
to bring focus on .toolbar,find-string entry widget.


gridplus button .toolbar -style Toolbutton {
{.add :actredo16 "?Clear Results" ~ClearGrid} \
| {.find :viewmag16 "Find" 10 ~Toolbar:Find} {&e .find-
string 32 ~Toolbar:Find + #} | \
{.exit :actexit16 "?Exit" ~Exit}
}

Any hints?

Thanks
From: Adrian Davis on
> I have following toolbar, i would like to bind keyboad Control+F key
> to bring focus on  .toolbar,find-string entry widget.
>
> gridplus button .toolbar -style Toolbutton {
>             {.add :actredo16 "?Clear Results" ~ClearGrid} \
>             | {.find :viewmag16 "Find" 10 ~Toolbar:Find} {&e ..find-
> string 32 ~Toolbar:Find + #} | \
>             {.exit :actexit16 "?Exit" ~Exit}
>         }
>

Try something like...

bind . <Control-f> {focus .toolbar,find-string}

Best Regards,
=Adrian=
From: jamshed on
On Feb 1, 5:34 pm, Adrian Davis <adr...(a)satisoft.com> wrote:
> > I have following toolbar, i would like to bind keyboad Control+F key
> > to bring focus on  .toolbar,find-string entry widget.
>
> > gridplus button .toolbar -style Toolbutton {
> >             {.add :actredo16 "?Clear Results" ~ClearGrid} \
> >             | {.find :viewmag16 "Find" 10 ~Toolbar:Find} {&e .find-
> > string 32 ~Toolbar:Find + #} | \
> >             {.exit :actexit16 "?Exit" ~Exit}
> >         }
>
> Try something like...
>
> bind . <Control-f> {focus .toolbar,find-string}
>
> Best Regards,
>    =Adrian=

Works like a charm :-) Thanks