mirror of
https://github.com/TermoraDev/termora.git
synced 2026-01-16 02:12:58 +08:00
fix: text cursor not working (#637)
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user