fix: text cursor not working (#637)

This commit is contained in:
hstyi
2025-06-11 10:52:43 +08:00
committed by GitHub
parent 0cd5670bd3
commit 1f68f8a112

View File

@@ -260,6 +260,10 @@ class TermoraFrame : JFrame(), DataProvider {
private class GlassPane : JComponent() {
init {
isFocusable = false
}
override fun paintComponent(g: Graphics) {
val img = BackgroundManager.getInstance().getBackgroundImage() ?: return
val g2d = g as Graphics2D
@@ -271,5 +275,9 @@ class TermoraFrame : JFrame(), DataProvider {
g2d.composite = AlphaComposite.getInstance(AlphaComposite.SRC_OVER)
}
override fun contains(x: Int, y: Int): Boolean {
return false
}
}
}