public inbox for linux-kbuild@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] lxdialog:inputbox: Fix can't change selected button with Left/Right when input box selected
@ 2012-12-02 16:35 Wang YanQing
  2012-12-02 17:32 ` Yann E. MORIN
  0 siblings, 1 reply; 3+ messages in thread
From: Wang YanQing @ 2012-12-02 16:35 UTC (permalink / raw)
  To: mmarek
  Cc: linux-kbuild, linux-kernel, rdunlap, bp, yann.morin.1998, sakiwit,
	lacombar, lucas.demarchi, dave, paul.gortmaker, crquan, bpoirier

inputbox code don't support use Left/Right to change input
position in the input box, so it use continue to skip them
when input key is Left/Right, but use break for Up/Down, so
we can change selected button with Up/Down but we can't do it
with Left/Right key when input box selected.

This patch fix it.

Signed-off-by: Wang YanQing <udknight@gmail.com>
---
 scripts/kconfig/lxdialog/inputbox.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/scripts/kconfig/lxdialog/inputbox.c b/scripts/kconfig/lxdialog/inputbox.c
index dd8e587..7841f46 100644
--- a/scripts/kconfig/lxdialog/inputbox.c
+++ b/scripts/kconfig/lxdialog/inputbox.c
@@ -120,11 +120,9 @@ do_resize:
 			case TAB:
 			case KEY_UP:
 			case KEY_DOWN:
-				break;
 			case KEY_LEFT:
-				continue;
 			case KEY_RIGHT:
-				continue;
+				break;
 			case KEY_BACKSPACE:
 			case 127:
 				if (input_x || scroll) {
-- 
1.7.11.1.116.g8228a23

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] lxdialog:inputbox: Fix can't change selected button with Left/Right when input box selected
  2012-12-02 16:35 [PATCH] lxdialog:inputbox: Fix can't change selected button with Left/Right when input box selected Wang YanQing
@ 2012-12-02 17:32 ` Yann E. MORIN
  2012-12-03  4:47   ` Wang YanQing
  0 siblings, 1 reply; 3+ messages in thread
From: Yann E. MORIN @ 2012-12-02 17:32 UTC (permalink / raw)
  To: linux-kbuild
  Cc: Wang YanQing, mmarek, linux-kernel, rdunlap, bp, sakiwit,
	lacombar, lucas.demarchi, dave, paul.gortmaker, crquan, bpoirier

Wang, All,

On Sunday 02 December 2012 Wang YanQing wrote:
> inputbox code don't support use Left/Right to change input
> position in the input box, so it use continue to skip them
> when input key is Left/Right, but use break for Up/Down, so
> we can change selected button with Up/Down but we can't do it
> with Left/Right key when input box selected.
> This patch fix it.

Although I do understand the motivation behind your change, may I suggest
that left/right are used to navigate *inside* the input field, so it is
possible to modify the text in place?

The nconf frontend allows editing text in place, so I find it disturbing
not to be able to do it in mconf.

Regards,
Yann E. MORIN.

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] lxdialog:inputbox: Fix can't change selected button with Left/Right when input box selected
  2012-12-02 17:32 ` Yann E. MORIN
@ 2012-12-03  4:47   ` Wang YanQing
  0 siblings, 0 replies; 3+ messages in thread
From: Wang YanQing @ 2012-12-03  4:47 UTC (permalink / raw)
  To: Yann E. MORIN
  Cc: linux-kbuild, mmarek, linux-kernel, rdunlap, bp, sakiwit,
	lacombar, lucas.demarchi, dave, paul.gortmaker, crquan, bpoirier

On Sun, Dec 02, 2012 at 06:32:43PM +0100, Yann E. MORIN wrote:
> Wang, All,
> 
> On Sunday 02 December 2012 Wang YanQing wrote:
> > inputbox code don't support use Left/Right to change input
> > position in the input box, so it use continue to skip them
> > when input key is Left/Right, but use break for Up/Down, so
> > we can change selected button with Up/Down but we can't do it
> > with Left/Right key when input box selected.
> > This patch fix it.
> 
> Although I do understand the motivation behind your change, may I suggest
> that left/right are used to navigate *inside* the input field, so it is
> possible to modify the text in place?
Hi Yann,All,
I understand what you say, and I also want inputbox support
changing input position with Left/Right. But this patch is accepted 
before somebody make it come true, right?

Thanks

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-12-03  4:47 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-12-02 16:35 [PATCH] lxdialog:inputbox: Fix can't change selected button with Left/Right when input box selected Wang YanQing
2012-12-02 17:32 ` Yann E. MORIN
2012-12-03  4:47   ` Wang YanQing

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox