mirror of https://github.com/zlatinb/muwire
fix popup menu not appearing when nothing was typed
parent
4e22d10d7c
commit
bc5a977669
|
@ -47,6 +47,8 @@ class ChatEntryPane extends JTextPane {
|
||||||
void keyTyped(KeyEvent e) {
|
void keyTyped(KeyEvent e) {
|
||||||
if (e.getKeyChar() == AT) {
|
if (e.getKeyChar() == AT) {
|
||||||
lastPoint = getCaret().getMagicCaretPosition()
|
lastPoint = getCaret().getMagicCaretPosition()
|
||||||
|
if (lastPoint == null)
|
||||||
|
lastPoint = getBounds().getLocation()
|
||||||
lastComponent = e.getComponent()
|
lastComponent = e.getComponent()
|
||||||
if (lastPoint == null || lastComponent == null)
|
if (lastPoint == null || lastComponent == null)
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in New Issue