Skip to content

Commit

Permalink
Fix autodrill activating while typing
Browse files Browse the repository at this point in the history
  • Loading branch information
buthed010203 authored May 19, 2023
1 parent 5cfad02 commit db39669
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/autodrill/AutoDrill.java
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,8 @@ public boolean keyDown(InputEvent event, KeyCode keyCode) {
!ui.schematics.isShown() &&
!ui.database.isShown() &&
!ui.consolefrag.shown() &&
!ui.content.isShown()) {
!ui.content.isShown() &&
!Core.scene.hasKeyboard()) {
if (Core.settings.getString(bundle.get("auto-drill.settings.activation-key")).equalsIgnoreCase(keyCode.value)) {
enabled = !enabled;
selectTable.visible = false;
Expand Down Expand Up @@ -382,4 +383,4 @@ public void add(SettingsMenuDialog.SettingsTable table) {
table.row();
}
}
}
}

0 comments on commit db39669

Please sign in to comment.