fixed a bug where console window would register keypresses when it's first loaded but not opened

This commit is contained in:
minjaesong
2022-01-23 20:36:44 +09:00
parent 250529e842
commit 98aa2087bb
2 changed files with 3 additions and 1 deletions

View File

@@ -1,12 +1,14 @@
package net.torvald.terrarum.modulebasegame.console
import net.torvald.terrarum.console.ConsoleCommand
import net.torvald.terrarum.console.ConsoleNoExport
import net.torvald.terrarum.console.Echo
import net.torvald.terrarum.langpack.Lang
/**
* Created by minjaesong on 2016-03-22.
*/
@ConsoleNoExport
internal object Help : ConsoleCommand {
override fun execute(args: Array<String>) {

View File

@@ -62,7 +62,7 @@ class ConsoleWindow : UICanvas() {
init {
reset()
addUIitem(textinput)
textinput.isActive = true
textinput.isActive = false
}
private val lb = ArrayList<String>()