added control-x;p as a backwards version of control-x o and fixed control-x o so that it works with splitting

svn: r7026
This commit is contained in:
Robby Findler 2007-08-05 22:06:06 +00:00
parent 36c962cae1
commit 4340c205d6

View File

@ -342,17 +342,34 @@ TODO
(λ (frame) (λ (frame)
(send frame execute-callback))))) (send frame execute-callback)))))
(send drs-bindings-keymap add-function (let ([shift-focus
"toggle-focus-between-definitions-and-interactions" (λ (adjust frame)
(λ (obj evt) (let ([candidates (adjust (append
(with-drs-frame (send frame get-definitions-canvases)
obj (send frame get-interactions-canvases)))])
(λ (frame) (let loop ([cs candidates])
(cond (cond
[(send (send frame get-definitions-canvas) has-focus?) [(null? cs) (send (car candidates) focus)]
(send (send frame get-interactions-canvas) focus)] [else
[else (let ([c (car cs)])
(send (send frame get-definitions-canvas) focus)]))))) (if (send c has-focus?)
(send (if (null? (cdr cs))
(car candidates)
(cadr cs))
focus)
(loop (cdr cs))))]))))])
(send drs-bindings-keymap add-function
"toggle-focus-between-definitions-and-interactions"
(λ (obj evt)
(with-drs-frame
obj
(λ (frame) (shift-focus values frame)))))
(send drs-bindings-keymap add-function
"toggle-focus-between-definitions-and-interactions backwards"
(λ (obj evt)
(with-drs-frame
obj
(λ (frame) (shift-focus reverse frame))))))
(send drs-bindings-keymap add-function (send drs-bindings-keymap add-function
"next-tab" "next-tab"
(λ (obj evt) (λ (obj evt)
@ -367,6 +384,7 @@ TODO
(λ (frame) (send frame prev-tab)))))) (λ (frame) (send frame prev-tab))))))
(send drs-bindings-keymap map-function "c:x;o" "toggle-focus-between-definitions-and-interactions") (send drs-bindings-keymap map-function "c:x;o" "toggle-focus-between-definitions-and-interactions")
(send drs-bindings-keymap map-function "c:x;p" "toggle-focus-between-definitions-and-interactions backwards")
(send drs-bindings-keymap map-function "c:f6" "toggle-focus-between-definitions-and-interactions") (send drs-bindings-keymap map-function "c:f6" "toggle-focus-between-definitions-and-interactions")
(send drs-bindings-keymap map-function "f5" "execute") (send drs-bindings-keymap map-function "f5" "execute")
(send drs-bindings-keymap map-function "f1" "search-help-desk") (send drs-bindings-keymap map-function "f1" "search-help-desk")