I think it's because the window is receiving the keydown event but
doesn't know what to do with it. I haven't specified to beep anywhere
in my project, which means that it's a system beep, which (I think)
means the focus somehow isn't getting back to the editfield.
Dave
On Sat, 30 Oct 2004 15:33:43 -0400, Charles Yeomans
<yeomans at desuetude dot com> wrote:
>
> On Oct 30, 2004, at 1:01 PM, Dave wrote:
>
> > Hi everyone,
> >
> > I'm having editfield problems. Here's what's up:
> > I have a window with (basically) an editfield and a canvas. The
> > canvas is a transparent control over everything to intercept certain
> > mouseclicks (right and command clicks). Otherwise, the mouse click is
> > ignored by the canvas (or so I'm led to believe) and passes to the
> > editfield underneath.
> >
> > The problem:
> > When I run my program, it works fine. But if I switch to another
> > application and then back to my program, and try typing, I'm met at
> > every keystroke by my iBook beeping at me. I've tried putting
> > "SearchField.setfocus" everywhere I could think, but nothing is
> > working. What am I missing?
>
> A strategy for finding the problem.
>
> Why is the beep occurring?
>
> Charles Yeomans
>
>
--
"You take the blue pill. The dream ends, you wake up in bed and
believe whatever you want to believe. You take the red pill. You stay
in Wonderland and I show you how deep the rabbit-hole goes. You take
the purple pill. The pain stops, you are relieved from heartburn, and
the lining of your esophagus returns."
There's no place like ~/
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://www.realsoftware.com/listarchives/lists.html>
|