I’m not trying to filter user input. I’m trying to trap certain 
navigation-related keystrokes. I am trying to implement a relatively simple 
generic auto-complete that allows me to customize the query used to generate 
the autocomplete list. I’m displaying a listbox under the field the user types 
in, and filtering the arrow keys to navigate the list. The idea is for the user 
to type a couple letters, down arrow a couple times to the choice they want, 
and hit return to select it. The arrow keys can be detected in On Before 
Keystroke, and that part works fine. The return/enter keys cannot be detected 
that way. It’s frustrating to have to think about the hassle of managing the 
choice list in another window just because On Before Keystroke doesn’t detect 
certain keystrokes.

Jim Crate


> On Jan 24, 2018, at 11:11 PM, Keisuke Miyako via 4D_Tech 
> <[email protected]> wrote:
> 
> the "On Losing Focus" event fires as a "result" of another object taking its 
> focus way.
> 
> is the default button focusable?
> 
> I don't think you can write generic code without knowing the next/previous 
> object in entry order.
> 
> also, keystrokes are not the only way to edit text, it can be drag and drop, 
> context menu, speech input, etc.
> On After Edit is especially useful because it catches all means of edit, 
> including copy and paste.
> (as an example, in Japanese we press the keyboard many times to compose a 
> single character)
> 
> thinking only in terms of keystrokes feels like going in the opposite 
> direction.
> 
>> 2018/01/25 12:05、Jim Crate via 4D_Tech <[email protected]> のメール:
>> However, with a default button on the form, I don’t even get an On Losing 
>> Focus event.
> 
> 
> 
> **********************************************************************
> 4D Internet Users Group (4D iNUG)
> FAQ:  http://lists.4d.com/faqnug.html
> Archive:  http://lists.4d.com/archives.html
> Options: http://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:[email protected]
> **********************************************************************

**********************************************************************
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:[email protected]
**********************************************************************

Reply via email to