diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2015-08-10 13:05:26 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2015-08-10 13:05:26 -0700 |
commit | 8406f11b1fb28552edc4c2a4d8c9a519d55c6e0b (patch) | |
tree | 7fe20a9a40f8cc0205aa8513d991bfc780087064 | |
parent | 822553afa68fd59b28bbc6d1a9d1b75851268f5c (diff) | |
download | mu-8406f11b1fb28552edc4c2a4d8c9a519d55c6e0b.tar.gz |
1967
-rw-r--r-- | edit.mu | 23 |
1 files changed, 14 insertions, 9 deletions
diff --git a/edit.mu b/edit.mu index 1b79414d..42bdcb37 100644 --- a/edit.mu +++ b/edit.mu @@ -3871,15 +3871,6 @@ recipe event-loop [ c:address:character <- maybe-convert e:event, text:variant break-unless c +global-type - # ctrl-n? - switch focus - { - ctrl-n?:boolean <- equal *c, 14/ctrl-n - break-unless ctrl-n? - *sandbox-in-focus? <- not *sandbox-in-focus? - update-cursor screen, recipes, current-sandbox, *sandbox-in-focus? - show-screen screen - loop +next-event:label - } } # 'touch' event - send to both sides, see what picks it up { @@ -4201,6 +4192,20 @@ recipe render-recipes [ reply screen/same-as-ingredient:0 ] +# ctrl-n - switch focus +# todo: test this + +after +global-type [ + { + ctrl-n?:boolean <- equal *c, 14/ctrl-n + break-unless ctrl-n? + *sandbox-in-focus? <- not *sandbox-in-focus? + update-cursor screen, recipes, current-sandbox, *sandbox-in-focus? + show-screen screen + loop +next-event:label + } +] + ## running code from the editor and creating sandboxes container sandbox-data [ |