In the GuiObjectManager, Keyframes can be deleted using the DELETE Key on the Keyboard

This commit is contained in:
CrushedPixel
2015-07-15 12:20:24 +02:00
parent d057553223
commit 62073d6351

View File

@@ -21,6 +21,7 @@ import net.minecraft.client.Minecraft;
import net.minecraft.client.gui.GuiScreen;
import net.minecraft.client.renderer.GlStateManager;
import net.minecraft.client.resources.I18n;
import org.lwjgl.input.Keyboard;
import org.lwjgl.util.Point;
import java.awt.*;
@@ -421,6 +422,12 @@ public class GuiObjectManager extends GuiScreen {
selectedObject.setName(nameInput.getText().trim());
}
if(keyCode == Keyboard.KEY_DELETE) {
if(objectKeyframeTimeline.getSelectedKeyframe() != null) {
objectKeyframeTimeline.removeKeyframe(objectKeyframeTimeline.getSelectedKeyframeRow());
}
}
super.keyTyped(typedChar, keyCode);
}