[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: choosing options with numbers
From: |
Thomas Dickey |
Subject: |
Re: choosing options with numbers |
Date: |
Tue, 26 Mar 2002 18:30:19 -0500 |
User-agent: |
Mutt/1.2.5i |
On Mon, Mar 25, 2002 at 08:22:19AM -0800, Leon Zilber wrote:
> Hi,
>
> I am using CDK and currently have GUI which consisted
> of several items. User can select an item by using
> up/down keys to select an item and then press OK
> button.
>
> I'd like add capability so that user can also user
> numbers to select needed iterm. By pressing 1, Item #1
> is selected, by pressing #2, iterm #2 is selected.
> I have modified scroll.c to support such operation by
> adding the following:
> case '2':case '3':case '4':case '5':case '6':case
> '7':case '8': case '9' :
> scroll->currentItem = (input - 49);
> scroll->currentHigh = (input - 49);
> break;
hmm - where - in injectCDKScroll? There are cases for G/g which look
like a good starting point.
--
Thomas E. Dickey <address@hidden>
http://invisible-island.net
ftp://invisible-island.net