guix-commits
[Top][All Lists]
Advanced

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

80/197: installer: Ignore case in button accelerators.


From: Danny Milosavljevic
Subject: 80/197: installer: Ignore case in button accelerators.
Date: Mon, 3 Jul 2017 20:37:04 -0400 (EDT)

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

commit a03f5ce4c54b9144a42364920e57b9e1c43d85bc
Author: John Darrington <address@hidden>
Date:   Sat Jan 7 08:53:07 2017 +0100

    installer: Ignore case in button accelerators.
    
    * gurses/buttons.scm (buttons-key-matches-symbol): Check upper and lower 
case matches.
---
 gurses/buttons.scm | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/gurses/buttons.scm b/gurses/buttons.scm
index 7b1c666..8be4983 100644
--- a/gurses/buttons.scm
+++ b/gurses/buttons.scm
@@ -1,5 +1,5 @@
 ;;; GNU Guix --- Functional package management for GNU
-;;; Copyright © 2016 John Darrington <address@hidden>
+;;; Copyright © 2016, 2017 John Darrington <address@hidden>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -152,7 +152,8 @@
 
 (define (buttons-key-matches-symbol? nav ch symbol)
   (if (char? ch)
-      (or (eq? (buttons-fetch-by-key nav (char-upcase ch)) symbol)
+      (or (eq? (buttons-fetch-by-key nav (char-downcase ch)) symbol)
+          (eq? (buttons-fetch-by-key nav (char-upcase ch)) symbol)
          (and (or (eq? ch #\newline)
                   (eq? ch #\space))
               (and=> (buttons-get-current-selection nav)



reply via email to

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