Created scene to view/update current key bindings.
- Current key bindings are shown on buttons - Added button action events to store the clicked button - Added key press event to entire pane - Button text is updated to display its key - Added functionality to keyFactory to update key bindings - CSS styling for some components #story[1197]
This commit is contained in:
@@ -48,4 +48,12 @@ public class KeyFactory {
|
||||
return keyState.get(key);
|
||||
}
|
||||
|
||||
public Map<String, ControlKey> getKeyState() {
|
||||
return keyState;
|
||||
}
|
||||
|
||||
public void updateKey(String oldKey, String newKey){
|
||||
ControlKey controlKey = keyState.get(oldKey);
|
||||
keyState.put(newKey, controlKey);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user