mirror of
https://github.com/GTNewHorizons/Applied-Energistics-2-Unofficial.git
synced 2026-11-23 21:50:04 +00:00
Fix some GUIs not accepting numpad enter key (#380)
* Remove outdated script * Fix some GUIs not accepting numpad enter key
This commit is contained in:
1 parent
0e589db4cc
commit
33a70dce81
6 files changed
+13
-38
No files matched your search
@@ -8,6 +8,8 @@ import net.minecraft.entity.player.InventoryPlayer;
|
||||
import net.minecraft.inventory.Slot;
|
||||
import net.minecraft.item.ItemStack;
|
||||
|
||||
import org.lwjgl.input.Keyboard;
|
||||
|
||||
import appeng.api.AEApi;
|
||||
import appeng.api.definitions.IDefinitions;
|
||||
import appeng.api.definitions.IParts;
|
||||
@@ -166,7 +168,7 @@ public class GuiPatternValueAmount extends AEBaseGui {
|
||||
@Override
|
||||
protected void keyTyped(final char character, final int key) {
|
||||
if (!this.checkHotbarKeys(key)) {
|
||||
if (key == 28) {
|
||||
if (key == Keyboard.KEY_RETURN || key == Keyboard.KEY_NUMPADENTER) {
|
||||
this.actionPerformed(this.set);
|
||||
}
|
||||
this.amountToSet.textboxKeyTyped(character, key);
|
||||
|
||||
Reference in new issue
Block a user