Skip to content

Commit

Permalink
Merge pull request runelite#3247 from psikoi/hiscore-autofill-fix
Browse files Browse the repository at this point in the history
Fix Hiscore auto-complete
  • Loading branch information
Adam- authored May 24, 2018
2 parents 274a0dc + be2118f commit 66a4911
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -493,12 +493,12 @@ else if (result.getSkill(skill) != null && result.getSkill(skill).getRank() != -

void addInputKeyListener(KeyListener l)
{
this.input.addInputKeyListener(l);
this.input.addKeyListener(l);
}

void removeInputKeyListener(KeyListener l)
{
this.input.removeInputKeyListener(l);
this.input.removeKeyListener(l);
}

/*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,14 +110,16 @@ public void setText(String text)
textField.setText(text);
}

public void addInputKeyListener(KeyListener l)
@Override
public void addKeyListener(KeyListener keyListener)
{
textField.addKeyListener(l);
textField.addKeyListener(keyListener);
}

public void removeInputKeyListener(KeyListener l)
@Override
public void removeKeyListener(KeyListener keyListener)
{
textField.removeKeyListener(l);
textField.removeKeyListener(keyListener);
}

@Override
Expand All @@ -134,7 +136,7 @@ public void setBackground(Color color, boolean saveColor)
}

super.setBackground(color);

if (saveColor)
{
this.backgroundColor = color;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,14 +145,16 @@ public void setHoverBackgroundColor(Color hoverBackgroundColor)
this.textField.setHoverBackgroundColor(hoverBackgroundColor);
}

public void addInputKeyListener(KeyListener l)
@Override
public void addKeyListener(KeyListener keyListener)
{
textField.addKeyListener(l);
textField.addKeyListener(keyListener);
}

public void removeInputKeyListener(KeyListener l)
@Override
public void removeKeyListener(KeyListener keyListener)
{
textField.removeKeyListener(l);
textField.removeKeyListener(keyListener);
}

public void setEditable(boolean editable)
Expand Down

0 comments on commit 66a4911

Please sign in to comment.