I really should be double-checking commits
cpsdqs/unified-input
cpsdqs 7 years ago
parent 2febe199e4
commit 1f07aa9886
Signed by untrusted user: cpsdqs
GPG Key ID: 3F59586BB7448DD1
  1. 4
      build.sh
  2. 4
      jssrc/soft_keyboard.js
  3. 1
      jssrc/term.js

@ -13,8 +13,8 @@ npm run babel -- -o js/app.js --source-maps jssrc/lib \
jssrc/wifi.js \ jssrc/wifi.js \
jssrc/term_* \ jssrc/term_* \
jssrc/debug_screen.js \ jssrc/debug_screen.js \
jssrc/term.js \ jssrc/soft_keyboard.js \
jssrc/soft_keyboard.js jssrc/term.js
echo 'Building CSS...' echo 'Building CSS...'

@ -1,4 +1,4 @@
$.ready(() => { window.initSoftKeyboard = function (screen) {
const input = qs('#softkb-input') const input = qs('#softkb-input')
if (!input) return // abort, we're not on the terminal page if (!input) return // abort, we're not on the terminal page
@ -89,4 +89,4 @@ $.ready(() => {
}) })
screen.on('open-soft-keyboard', () => input.focus()) screen.on('open-soft-keyboard', () => input.focus())
}) }

@ -43,6 +43,7 @@ window.termInit = function (labels, theme) {
} }
} }
window.initSoftKeyboard(screen)
if (window.attachDebugScreen) window.attachDebugScreen(screen) if (window.attachDebugScreen) window.attachDebugScreen(screen)
window.termScreen = screen // for debugging window.termScreen = screen // for debugging

Loading…
Cancel
Save