macro-stepper: map "s" and "h" keys to show and hide selected identifier

original commit: 7dcd0d408c2d7e6f7034320f30280c799fa25416
This commit is contained in:
Ryan Culpepper 2010-11-11 18:59:25 -07:00
parent dedcef50a2
commit b50316679a

View File

@ -19,6 +19,7 @@
(inherit-field config (inherit-field config
controller) controller)
(inherit add-function (inherit add-function
map-function
call-function) call-function)
(define show-macro #f) (define show-macro #f)
@ -29,6 +30,9 @@
(define/public (get-hiding-panel) (define/public (get-hiding-panel)
(send/i macro-stepper widget<%> get-macro-hiding-prefs)) (send/i macro-stepper widget<%> get-macro-hiding-prefs))
(map-function ":s" "hiding:show-macro")
(map-function ":h" "hiding:hide-macro")
(add-function "hiding:show-macro" (add-function "hiding:show-macro"
(lambda (i e) (lambda (i e)
(send*/i (get-hiding-panel) hiding-prefs<%> (send*/i (get-hiding-panel) hiding-prefs<%>