Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.gui > #5206
| From | markspace <-@.> |
|---|---|
| Newsgroups | comp.lang.java.gui |
| Subject | Re: Passing KeyEvent upward |
| Date | 2012-07-24 22:50 -0700 |
| Organization | A noiseless patient Spider |
| Message-ID | <juo1f1$qcv$1@dont-email.me> (permalink) |
| References | <0f05834e-c654-4925-b78a-b8328b23ba0b@googlegroups.com> <jumvpu$djr$1@dont-email.me> <c1bd1298-3737-4cae-9364-111c729aa912@googlegroups.com> |
On 7/24/2012 9:08 PM, Adam Beneschan wrote: > Suppose you have a text window where > you want the user to be able to enter and edit text; but at certain > points, depending on what the user just typed in, the program may > decide that there are two or more likely "completions" to the word > (or whatever) that the user started typing. So the program > automatically brings up a menu. The user can then select one of the > completions off the menu. But if she keeps typing, I want the key to > work as it normally would if the menu hadn't popped up. Oh, hmm. I can see a couple of solutions. One is to require the "pick" keys be different from the normal "edit" keys. Another is just to use "pick" keys that the use won't miss much. My IDE does this. I'm pretty sure it captures the keys, and doesn't "pass them back up". Things would be confusing if it did. There's only four keys the pop-up menu needs. Up and down arrows to select, enter key to pick the selection, and escape to dismiss the pop up. Most folks won't miss those keys, or they can hit escape first if they need to use the arrow keys or press enter.
Back to comp.lang.java.gui | Previous | Next — Previous in thread | Next in thread | Find similar
Passing KeyEvent upward Adam Beneschan <adam@irvine.com> - 2012-07-22 16:09 -0700
Re: Passing KeyEvent upward markspace <-@.> - 2012-07-22 17:26 -0700
Re: Passing KeyEvent upward markspace <-@.> - 2012-07-22 17:39 -0700
Re: Passing KeyEvent upward Adam Beneschan <adam@irvine.com> - 2012-07-23 21:15 -0700
Re: Passing KeyEvent upward markspace <-@.> - 2012-07-23 23:08 -0700
Re: Passing KeyEvent upward "John B. Matthews" <nospam@nospam.invalid> - 2012-07-22 21:32 -0400
Re: Passing KeyEvent upward Roedy Green <see_website@mindprod.com.invalid> - 2012-07-23 23:46 -0700
Re: Passing KeyEvent upward Knute Johnson <nospam@rabbitbrush.frazmtn.com> - 2012-07-24 13:15 -0700
Re: Passing KeyEvent upward Adam Beneschan <adam@irvine.com> - 2012-07-24 21:08 -0700
Re: Passing KeyEvent upward markspace <-@.> - 2012-07-24 22:50 -0700
Re: Passing KeyEvent upward Daniele Futtorovic <da.futt.news@laposte-dot-net.invalid> - 2012-07-25 00:32 +0200
csiph-web