- Timestamp:
- 11/06/2007 04:20:29 PM (19 years ago)
- branch-nick:
- tui-new
- revision id:
- dsowen@fugue88.ws-20071106162029-m13nua6uabv5zsyk
- File:
-
- 1 edited
-
main/textbox.lisp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
main/textbox.lisp
r35 r36 85 85 (subseq s insertion-point (length s)))))) 86 86 87 (defun activate-textbox (textbox callback) 87 (defun nothing (dummy) 88 (declare (ignore dummy))) 89 90 (defun activate-textbox (textbox &optional (callback 'nothing)) 88 91 (with-slots (data window) textbox 89 92 (cdk::c-keypad (window-pointer window) t) 93 (setf (insertion-point textbox) :end) 90 94 (loop 91 95 (let ((key (read-key window))) … … 110 114 (if (or (keywordp key) (member key '(#\Return #\Tab #\Esc))) 111 115 (when (funcall callback key) 116 (setf (insertion-point textbox) 0) 112 117 (return-from activate-textbox)) 113 118 (multiple-value-bind (left right) (split textbox)
Note: See TracChangeset
for help on using the changeset viewer.
