Allow deletion of selected keyframes by pressing the DELETE key (fixes #19)

This commit is contained in:
johni0702
2016-10-22 22:24:01 +02:00
parent d547098ce8
commit 1851e97346

View File

@@ -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
entityTrackerFuture = SettableFuture.create();
new Thread(() -> {