Allow deletion of selected keyframes by pressing the DELETE key (fixes #19)
This commit is contained in:
@@ -403,6 +403,15 @@ public class GuiPathing {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
core.getKeyBindingRegistry().registerRaw(Keyboard.KEY_DELETE, () -> {
|
||||||
|
if (!overlay.isVisible()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (mod.getSelectedKeyframe() != null) {
|
||||||
|
updateKeyframe(mod.getSelectedKeyframe().getValue(TimestampProperty.PROPERTY).isPresent());
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
// Start loading entity tracker
|
// Start loading entity tracker
|
||||||
entityTrackerFuture = SettableFuture.create();
|
entityTrackerFuture = SettableFuture.create();
|
||||||
new Thread(() -> {
|
new Thread(() -> {
|
||||||
|
|||||||
Reference in New Issue
Block a user