From a38702357e4611bd49b12cdb769afe0a17a686cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emmanuel=20Beno=C3=AEt?= Date: Sat, 23 Jul 2016 10:11:01 +0200 Subject: [PATCH] Workbench / alloy furnace - Changed search shortcut to '/' (makes more sense to me) --- src/java/mmm/tech/base/alloy_furnace/TBAFGui.java | 2 +- src/java/mmm/tech/base/workbench/TBWBGui.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/java/mmm/tech/base/alloy_furnace/TBAFGui.java b/src/java/mmm/tech/base/alloy_furnace/TBAFGui.java index 1183812..684e3ff 100644 --- a/src/java/mmm/tech/base/alloy_furnace/TBAFGui.java +++ b/src/java/mmm/tech/base/alloy_furnace/TBAFGui.java @@ -169,7 +169,7 @@ public class TBAFGui ( (TBAFGui) this.parent ).handleFiltering( this.tfSearch.getText( ) ); return true; - } else if ( typedChar == 't' || typedChar == 'T' ) { + } else if ( typedChar == '/' ) { this.tfSearch.setFocused( true ); return true; diff --git a/src/java/mmm/tech/base/workbench/TBWBGui.java b/src/java/mmm/tech/base/workbench/TBWBGui.java index 1325443..e597aaf 100644 --- a/src/java/mmm/tech/base/workbench/TBWBGui.java +++ b/src/java/mmm/tech/base/workbench/TBWBGui.java @@ -137,7 +137,7 @@ public class TBWBGui } else if ( this.tfSearch.textboxKeyTyped( typedChar , keyCode ) ) { this.handleFiltering( this.tfSearch.getText( ) ); - } else if ( typedChar == 't' || typedChar == 'T' ) { + } else if ( typedChar == '/' ) { this.tfSearch.setFocused( true ); } else if ( keyCode == Keyboard.KEY_LEFT && this.bPrevious.enabled ) {