home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!dtix!darwin.sura.net!zaphod.mps.ohio-state.edu!magnus.acs.ohio-state.edu!usenet.ins.cwru.edu!agate!sprite.Berkeley.EDU!ouster
- From: ouster@sprite.Berkeley.EDU (John Ousterhout)
- Newsgroups: comp.lang.tcl
- Subject: Re: Bind bug, Tk3.0
- Message-ID: <1hasqhINNk4i@agate.berkeley.edu>
- Date: 23 Dec 92 23:30:25 GMT
- References: <TROMEY.92Dec23141425@kant.cns.caltech.edu>
- Organization: U.C. Berkeley Sprite Project
- Lines: 32
- NNTP-Posting-Host: tyranny.berkeley.edu
-
- In article <TROMEY.92Dec23141425@kant.cns.caltech.edu>, tromey@cns.caltech.edu (Tom Tromey) writes:
- |> I'm using Tk 3.0 and Tcl 6.5. I've applied all known patches (two to
- |> tkWm.c, one to tkBind.c, and one to tkCanvLine.c). I also added a
- |> patch of my own to tkWm.c which implements the "wm raise" and "wm
- |> lower" commands. I don't think this makes any difference.
- |>
- |> Type in the following at the wish prompt:
- |>
- |> canvas .zot
- |> pack append . .zot left
- |> bind <q> exit
- |>
- |> Pressing "q" in the window has no effect. This same script worked
- |> under Tk 2.3.
- |>
- |> Let me register my vote for a patchlevel.h or moral equivalent to make
- |> reporting bugs easier.
- |>
- |> Tom
- |> --
- |> tromey@cns.caltech.edu
- |> "In a riddle whose answer is chess, what is the only prohibited word?"
- |> I thought a moment and replied, "The word chess".
- |> -- Jorge Luis Borges
-
- You need to focus on the canvas window, e.g. "focus .zot".
-
- In Tk2.3 and earlier versions, if there was no explicit focus window
- then keystrokes went to the window under the mouse. This behavior
- seemed inconsistent and arbitrary to me, so I changed it. In Tk 3.0
- keystrokes are dropped if you have no focus, but the focus is set to
- "." on application startup.
-