diff options
-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 [ |