From 1f07aa9886db3c79879197c47afc55a6923fd544 Mon Sep 17 00:00:00 2001 From: cpsdqs Date: Mon, 11 Sep 2017 11:25:32 +0200 Subject: [PATCH] Fix what 2febe19 broke I really should be double-checking commits --- build.sh | 4 ++-- jssrc/soft_keyboard.js | 4 ++-- jssrc/term.js | 1 + 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/build.sh b/build.sh index 736b231..ebfd632 100755 --- a/build.sh +++ b/build.sh @@ -13,8 +13,8 @@ npm run babel -- -o js/app.js --source-maps jssrc/lib \ jssrc/wifi.js \ jssrc/term_* \ jssrc/debug_screen.js \ - jssrc/term.js \ - jssrc/soft_keyboard.js + jssrc/soft_keyboard.js \ + jssrc/term.js echo 'Building CSS...' diff --git a/jssrc/soft_keyboard.js b/jssrc/soft_keyboard.js index d1cb0d0..63d2c2c 100644 --- a/jssrc/soft_keyboard.js +++ b/jssrc/soft_keyboard.js @@ -1,4 +1,4 @@ -$.ready(() => { +window.initSoftKeyboard = function (screen) { const input = qs('#softkb-input') if (!input) return // abort, we're not on the terminal page @@ -89,4 +89,4 @@ $.ready(() => { }) screen.on('open-soft-keyboard', () => input.focus()) -}) +} diff --git a/jssrc/term.js b/jssrc/term.js index 5b93336..6fd2f03 100644 --- a/jssrc/term.js +++ b/jssrc/term.js @@ -43,6 +43,7 @@ window.termInit = function (labels, theme) { } } + window.initSoftKeyboard(screen) if (window.attachDebugScreen) window.attachDebugScreen(screen) window.termScreen = screen // for debugging