aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--console/build.gradle.kts2
-rw-r--r--console/src/jsMain/kotlin/main.kt4
2 files changed, 5 insertions, 1 deletions
diff --git a/console/build.gradle.kts b/console/build.gradle.kts
index 61bed6e..c23f20e 100644
--- a/console/build.gradle.kts
+++ b/console/build.gradle.kts
@@ -21,7 +21,7 @@ kotlin {
}
sourceSets.named("jsMain") {
dependencies {
- implementation("com.github.romangraef:neamoe:36374a0")
+ implementation("com.github.romangraef:neamoe:484bc7c89")
implementation(npm("@fontsource/comic-mono", "^4.5.0"))
}
}
diff --git a/console/src/jsMain/kotlin/main.kt b/console/src/jsMain/kotlin/main.kt
index 9be161a..45bdead 100644
--- a/console/src/jsMain/kotlin/main.kt
+++ b/console/src/jsMain/kotlin/main.kt
@@ -1,4 +1,5 @@
import kotlinx.browser.document
+import kotlinx.browser.window
import kotlinx.css.*
import kotlinx.html.dom.append
import kotlinx.html.js.div
@@ -38,6 +39,9 @@ fun main() {
}
console.addLine("Starting stfff")
console.PS1 = { "${console.fileAccessor!!.currentDir.joinToString("/", "/")} > " }
+ if (window.location.hash == "#mobile" || (window.location.hash != "#desktop" && js("'ontouchstart' in document.documentElement") as Boolean)) {
+ console.openMobileKeyboardOnTap()
+ }
console.fileAccessor!!.cd("/home/exhq")
console.rerender()
console.registerCommand(defaultLsCommand("ls", delayBetweenLines = 0.milliseconds))