Skip to content

Commit

Permalink
Update the KeyInformation Javadoc
Browse files Browse the repository at this point in the history
  • Loading branch information
RoanH committed Feb 5, 2019
1 parent 9acd59a commit 09f31ab
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions KeysPerSecond/src/me/roan/kps/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -2190,6 +2190,14 @@ protected KeyInformation(String name, int code, boolean visible){
this.visible = visible;
}

/**
* Changes the display name of this
* key to the given string. If {@link Key}
* panels are active with the same key code
* as this {@link KeyInformation} object
* then their display name is also updated.
* @param name The new display name
*/
public void setName(String name){
this.name = name;
keys.getOrDefault(keycode, DUMMY_KEY).name = name;
Expand Down

0 comments on commit 09f31ab

Please sign in to comment.