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) {
|
||||
if (e.getKeyChar() == AT) {
|
||||
lastPoint = getCaret().getMagicCaretPosition()
|
||||
if (lastPoint == null)
|
||||
lastPoint = getBounds().getLocation()
|
||||
lastComponent = e.getComponent()
|
||||
if (lastPoint == null || lastComponent == null)
|
||||
return
|
||||
|
|
Loading…
Reference in New Issue