bug-ncurses
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [dialog] make hotkeys hotter for quick selection in radiolists?


From: Cristian Rigamonti
Subject: Re: [dialog] make hotkeys hotter for quick selection in radiolists?
Date: Wed, 25 May 2016 14:51:18 +0200
User-agent: Mutt/1.5.23 (2014-03-12)

On Tue, May 10, 2016 at 09:49:00PM +0200, Cristian Rigamonti wrote:
> Is it possible to configure dialog so that by hitting a hot key the
> corresponding item will be selected?

Ok, in case anyone else is interested, the attached patch implements this
feature. 

Basically, I've duplicated part of the code that implements toggling an item
when pressing the space key (lines 401...).

Disclaimer: this is just a quick hack that works for me, but I don't know the
dialog code base very well, so this might not be the right way to implement it,
or it might even cause strange effects: suggestions and corrections are welcome!

Cri

-- 
GPG/PGP Key-Id 0x943A5F0E      -    http://www.linux.it/~cri/cri.asc

Attachment: hotter-keys.patch
Description: Text Data

Attachment: signature.asc
Description: Digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]