guix-commits
[Top][All Lists]
Advanced

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

01/01: installer: form: Make Return key also go to the next form element


From: Danny Milosavljevic
Subject: 01/01: installer: form: Make Return key also go to the next form element (rather than activating the default button).
Date: Wed, 5 Jul 2017 04:37:17 -0400 (EDT)

dannym pushed a commit to branch wip-installer-2
in repository guix.

commit 474e5f017755b373cff3704cf528a0a386004582
Author: Danny Milosavljevic <address@hidden>
Date:   Wed Jul 5 10:36:06 2017 +0200

    installer: form: Make Return key also go to the next form element (rather 
than
    activating the default button).
    
    * gurses/form.scm (form-enter): Modify.
---
 gurses/form.scm | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/gurses/form.scm b/gurses/form.scm
index 8748896..43982f6 100644
--- a/gurses/form.scm
+++ b/gurses/form.scm
@@ -214,7 +214,8 @@ label eq? to N"
 
                       ((or (eq? ch KEY_DOWN)
                            (eq? ch #\so)
-                           (eq? ch #\tab))
+                           (eq? ch #\tab)
+                           (eq? ch #\newline))
                        (let ((status (form-next-field form)))
                          (cursor-move form f 0)
                          'handled))



reply via email to

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