diff options
| author | Ascynx <78341107+Ascynx@users.noreply.github.com> | 2022-10-21 03:25:08 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-10-20 21:25:08 -0400 |
| commit | 19175cb01395cd0a74714a0202152a0d52a561d4 (patch) | |
| tree | 2eada68339dba9920379eb1ece89f96c956fc2ce /src/main/java/io/github/moulberry/notenoughupdates/NEUOverlay.java | |
| parent | ebf61799fb28c971d94a02815924018b0964dea4 (diff) | |
| download | notenoughupdates-19175cb01395cd0a74714a0202152a0d52a561d4.tar.gz notenoughupdates-19175cb01395cd0a74714a0202152a0d52a561d4.tar.bz2 notenoughupdates-19175cb01395cd0a74714a0202152a0d52a561d4.zip | |
Ctrl + Z and (Ctrl + Y and Ctrl + Shift + Z) support (#358)
* Ctrl + Z and Ctrl + Y support
currently for Bazaar and AH search along with the search bar.
(might have issues as my brain jumbled up during the making of this
and also probably missing a few places that could use it.)
* Ctrl + Z and Ctrl + Y support but on a bigger scale
Removed it from Auction and Bazaar search and created a new mixin for GuiTextField containing the Undo (Ctrl + z) and Redo (Ctrl + y) action.
* Ctrl + shift + Z for redo and stack cut.
After redo/undo if you type a character or remove one it will cut the stack to that index (won't be able to rewind what you already rewound before.)
* Moved the undo/redo detection to MixinGuiTextField#addToStack
* Added an override for if something goes wrong
see misc > "Enable text field tweaks"
Also removed the space that hannibal wanted gone. :)
* i hate files changed with only new lines
Co-authored-by: nopo <nopotheemail@gmail.com>
Diffstat (limited to 'src/main/java/io/github/moulberry/notenoughupdates/NEUOverlay.java')
| -rw-r--r-- | src/main/java/io/github/moulberry/notenoughupdates/NEUOverlay.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/NEUOverlay.java b/src/main/java/io/github/moulberry/notenoughupdates/NEUOverlay.java index 14078069..2f55c338 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/NEUOverlay.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/NEUOverlay.java @@ -1035,7 +1035,7 @@ public class NEUOverlay extends Gui { return false; } - if (Keyboard.isKeyDown(Keyboard.KEY_Y) && NotEnoughUpdates.INSTANCE.config.hidden.dev) { + if ((Keyboard.isKeyDown(Keyboard.KEY_Y) && !Keyboard.isKeyDown(Keyboard.KEY_LCONTROL)) && NotEnoughUpdates.INSTANCE.config.hidden.dev) { displayInformationPane(new DevInfoPane(this, manager)); } |
