Changeset main,63 for main/form.lisp


Ignore:
Timestamp:
11/17/2007 12:40:30 AM (19 years ago)
Author:
David Owen <dsowen@…>
branch-nick:
tui
revision id:
dsowen@fugue88.ws-20071117004030-ov0o4jfbzl3b9vup
Message:

Allow for other callback-functions on ACTIVATE.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/form.lisp

    r47 r63  
    226226
    227227
    228 (defmethod activate ((form form) &optional (callback 'nothing))
     228(defmethod activate ((form form) &key (key-callback 'nothing) &allow-other-keys)
    229229  (with-slots (peers) form
    230230    (flet ((callback (key)
    231231             (if (member key '(#\Return #\Newline #\Tab :key-btab))
    232232                 key
    233                  (funcall callback key))))
     233                 (funcall key-callback key))))
    234234      (let ((focus 0)
    235235            (n (length peers)))
     
    237237           (ensure-widget-visible form focus)
    238238           (refresh form)
    239            (let ((key (activate (aref peers focus) #'callback)))
     239           (let ((key (activate (aref peers focus) :key-callback #'callback)))
    240240             (case key
    241241               ((#\Return #\Newline #\Tab)
Note: See TracChangeset for help on using the changeset viewer.