Make search box toggle key configurable (#3650)

Fixes #3641
This commit is contained in:
fscan
2018-08-01 00:20:17 +02:00
committed by GitHub
parent 390ad875ee
commit 73f471e685
7 changed files with 81 additions and 1 deletions
@@ -0,0 +1,28 @@
package appeng.client;
import org.lwjgl.input.Keyboard;
public enum ActionKey
{
TOGGLE_FOCUS( Keyboard.KEY_TAB );
private final int defaultKey;
private ActionKey( int defaultKey )
{
this.defaultKey = defaultKey;
}
public String getTranslationKey()
{
return "key." + this.name().toLowerCase() + ".desc";
}
public int getDefaultKey()
{
return this.defaultKey;
}
}