From: Chris Hanson Date: Sat, 6 Jan 2001 05:37:43 +0000 (+0000) Subject: Kludge in support for buttons in place where they might occur for help X-Git-Tag: 20090517-FFI~3012 X-Git-Url: https://birchwood-abbey.net/git?a=commitdiff_plain;h=9ae24ae25d31c2739774c5783a8dcb0936e5d24c;p=mit-scheme.git Kludge in support for buttons in place where they might occur for help commands. Buttons should really be merged into the special-key mechanism. --- diff --git a/v7/src/edwin/calias.scm b/v7/src/edwin/calias.scm index c7a453468..1c43e7b95 100644 --- a/v7/src/edwin/calias.scm +++ b/v7/src/edwin/calias.scm @@ -1,8 +1,8 @@ ;;; -*-Scheme-*- ;;; -;;; $Id: calias.scm,v 1.19 2000/02/24 01:23:22 cph Exp $ +;;; $Id: calias.scm,v 1.20 2001/01/06 05:37:43 cph Exp $ ;;; -;;; Copyright (c) 1986, 1989-2000 Massachusetts Institute of Technology +;;; Copyright (c) 1986, 1989-2001 Massachusetts Institute of Technology ;;; ;;; This program is free software; you can redistribute it and/or ;;; modify it under the terms of the GNU General Public License as @@ -88,6 +88,11 @@ (char->name (unmap-alias-key key))) ((special-key? key) (special-key/name key)) + ((button? key) + (string-append "button-" + (if (button/down? key) "down" "up") + "-" + (number->string (button/number key)))) (else (error "key-name: Unknown key type" key)))) @@ -187,7 +192,7 @@ (loop (cdr x) (cdr y))))))) (define (xkey->list xkey) - (cond ((key? xkey) + (cond ((or (key? xkey) (button? xkey)) (list xkey)) ((and (not (null? xkey)) (list-of-type? xkey key?))