mirror of
https://github.com/Wurst-Imperium/Wurst7.git
synced 2024-09-20 01:12:13 +02:00
Fix EditBlockListScreen buttons pressing when they shouldn't
This commit is contained in:
parent
3f58392ba4
commit
8c7cd60870
@ -135,11 +135,13 @@ public final class EditBlockListScreen extends Screen
|
|||||||
switch(keyCode)
|
switch(keyCode)
|
||||||
{
|
{
|
||||||
case GLFW.GLFW_KEY_ENTER:
|
case GLFW.GLFW_KEY_ENTER:
|
||||||
addButton.onPress();
|
if(addButton.active)
|
||||||
|
addButton.onPress();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case GLFW.GLFW_KEY_DELETE:
|
case GLFW.GLFW_KEY_DELETE:
|
||||||
removeButton.onPress();
|
if(!blockNameField.isFocused())
|
||||||
|
removeButton.onPress();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case GLFW.GLFW_KEY_ESCAPE:
|
case GLFW.GLFW_KEY_ESCAPE:
|
||||||
|
Loading…
Reference in New Issue
Block a user