From 8406f11b1fb28552edc4c2a4d8c9a519d55c6e0b Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Mon, 10 Aug 2015 13:05:26 -0700 Subject: 1967 --- edit.mu | 23 ++++++++++++++--------- 1 file 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 [ -- cgit 1.4.1-2-gfad0