mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2025-11-04 15:43:00 +00:00
Bump to 1.14pr1
This commit is contained in:
@@ -39,6 +39,8 @@ public class WidgetTerminal implements Element
|
||||
private final int termWidth;
|
||||
private final int termHeight;
|
||||
|
||||
private boolean focused;
|
||||
|
||||
private float terminateTimer = -1;
|
||||
private float rebootTimer = -1;
|
||||
private float shutdownTimer = -1;
|
||||
@@ -293,9 +295,9 @@ public class WidgetTerminal implements Element
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onFocusChanged( boolean noClue, boolean focused )
|
||||
public boolean changeFocus( boolean reverse )
|
||||
{
|
||||
if( !focused )
|
||||
if( focused )
|
||||
{
|
||||
// When blurring, we should make all keys go up
|
||||
for( int key = 0; key < keysDown.size(); key++ )
|
||||
@@ -314,6 +316,9 @@ public class WidgetTerminal implements Element
|
||||
|
||||
shutdownTimer = terminateTimer = rebootTimer = -1;
|
||||
}
|
||||
|
||||
focused = !focused;
|
||||
return true;
|
||||
}
|
||||
|
||||
public void draw( int originX, int originY )
|
||||
|
||||
@@ -33,9 +33,9 @@ public class WidgetWrapper implements Element
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onFocusChanged( boolean a, boolean b )
|
||||
public boolean changeFocus( boolean reverse )
|
||||
{
|
||||
listener.onFocusChanged( a, b );
|
||||
return listener.changeFocus( reverse );
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user