Article View: comp.sys.amiga.tech
Article #5277Re: Keyboard input while in string gadgets
From: Peter Cherna
Date: Thu, 13 Sep 1990 16:34
Date: Thu, 13 Sep 1990 16:34
36 lines
2156 bytes
2156 bytes
In article <190@incstar.uucp> lhotka@incstar.uucp (Glamdring) writes:
>In article <6107@amiga.UUCP>, jimm@amiga.UUCP (Jim Mackraz) writes:
>> In article <94@incstar.uucp> lhotka@incstar.uucp (Glamdring) writes:
>> )Is there any way to get keystrokes (function keys in particular) while in a
>> )string gadget? It appears that Intuition grabs all the input while a
>> )string gadget is active, but I'd like to allow keyboard shortcuts and such
>> )during this time...
>>
>> Under V2.0 it's fully supported. Under V1.3 you have to hack. One
>> way is to install an input handler, but there are some edge cases.
>> Some people use menu shortcuts, which are passed through (a bug), but
>> this does not work in V2.0.
>>
>
>How is it done under 2.0? In particular, would it be possible to use the
>menu shortcut bug in 1.3 for now and be able to use whatever 2.0 provides
>without too much rewriting?
We allow you to install a custom editing hook which allows you to act
on any keypress or mouse event relevant to the string gadget. So you can
take whatever action you wish on any of those events. These actions
can include:
Activating the next or previous string gadget (say on <TAB> or <BACK-TAB>)
Constraining the form of the input (eg. phone numbers, or postal codes)
Other functions you used to use menu equivalents for
etc.
>/ Rockford Lhotka INCSTAR Corp \
Peter
--
Peter Cherna, Software Engineer, Commodore-Amiga, Inc.
{uunet|rutgers}!cbmvax!peter peter@cbmvax.cbm.commodore.com
My opinions do not necessarily represent the opinions of my employer.
"Very strange... the window is broken on both sides."
Technical Details
Message-ID:
<14406@cbmvax.commodore.com>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!samsung!uunet!cbmvax!peterReferences:
<94@incstar.uucp> <6107@amiga.UUCP> <190@incstar.uucp>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!samsung!uunet!cbmvax!peter From: peter@cbmvax.commodore.com (Peter Cherna) Newsgroups: comp.sys.amiga.tech Subject: Re: Keyboard input while in string gadgets Message-ID: <14406@cbmvax.commodore.com> Date: 13 Sep 90 16:34:47 GMT References: <94@incstar.uucp> <6107@amiga.UUCP> <190@incstar.uucp> Reply-To: peter@cbmvax.commodore.com (Peter Cherna) Organization: Commodore, West Chester, PA Lines: 36