Skip to content

Commit

Permalink
Merge pull request #3540 from refinedmods/release/1.12.3
Browse files Browse the repository at this point in the history
Release v1.12.3
  • Loading branch information
raoulvdberge authored Jul 7, 2023
2 parents b1d2f6b + 0b9da71 commit 0f83b3a
Show file tree
Hide file tree
Showing 14 changed files with 29 additions and 30 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
types: [ opened, synchronize, reopened ]
jobs:
build:
uses: refinedmods/refinedarchitect/.github/workflows/build.yml@v0.6.0
uses: refinedmods/refinedarchitect/.github/workflows/build.yml@v0.7.1
with:
mutation-testing: false
secrets: inherit
2 changes: 1 addition & 1 deletion .github/workflows/draft-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ on:
type: string
jobs:
draft:
uses: refinedmods/refinedarchitect/.github/workflows/draft-release.yml@v0.6.0
uses: refinedmods/refinedarchitect/.github/workflows/draft-release.yml@v0.7.1
with:
release-type: ${{ inputs.release-type }}
version-number-override: ${{ inputs.version-number-override }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/issue-for-unsupported-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ on:
types: [ labeled, unlabeled, reopened ]
jobs:
unsupported-labeler:
uses: refinedmods/refinedarchitect/.github/workflows/issue-for-unsupported-version.yml@v0.6.0
uses: refinedmods/refinedarchitect/.github/workflows/issue-for-unsupported-version.yml@v0.7.1
2 changes: 1 addition & 1 deletion .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
- closed
jobs:
publish-release:
uses: refinedmods/refinedarchitect/.github/workflows/publish-release.yml@v0.6.0
uses: refinedmods/refinedarchitect/.github/workflows/publish-release.yml@v0.7.1
secrets: inherit
with:
project-name: 'Refined Storage'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/resolved-issue-locking.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ on:
- cron: '0 0 * * *'
jobs:
lock:
uses: refinedmods/refinedarchitect/.github/workflows/resolved-issue-locking.yml@v0.6.0
uses: refinedmods/refinedarchitect/.github/workflows/resolved-issue-locking.yml@v0.7.1
2 changes: 1 addition & 1 deletion .github/workflows/validate-branch-name.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ name: Validate branch name
on: [ pull_request ]
jobs:
validate-branch-name:
uses: refinedmods/refinedarchitect/.github/workflows/validate-branch-name.yml@v0.6.0
uses: refinedmods/refinedarchitect/.github/workflows/validate-branch-name.yml@v0.7.1
4 changes: 3 additions & 1 deletion .github/workflows/validate-changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,6 @@ on:
types: [ opened, synchronize, reopened, ready_for_review, labeled, unlabeled ]
jobs:
validate-changelog:
uses: refinedmods/refinedarchitect/.github/workflows/[email protected]
uses: refinedmods/refinedarchitect/.github/workflows/[email protected]
with:
validation-level: 'warn'
2 changes: 1 addition & 1 deletion .github/workflows/validate-commit-messages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ name: Validate commit messages
on: [ pull_request ]
jobs:
validate-commit-messages:
uses: refinedmods/refinedarchitect/.github/workflows/validate-commit-messages.yml@v0.6.0
uses: refinedmods/refinedarchitect/.github/workflows/validate-commit-messages.yml@v0.7.1
10 changes: 9 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

## [1.12.3] - 2023-07-07

### Fixed

- Fixed not being able to type "e" in Grid search box.

## [1.12.2] - 2023-07-05

### Fixed
Expand Down Expand Up @@ -3469,7 +3475,9 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

- Internal test release.

[Unreleased]: https://github.com/refinedmods/refinedstorage/compare/v1.12.2...HEAD
[Unreleased]: https://github.com/refinedmods/refinedstorage/compare/v1.12.3...HEAD

[1.12.3]: https://github.com/refinedmods/refinedstorage/compare/v1.12.2...v1.12.3

[1.12.2]: https://github.com/refinedmods/refinedstorage/compare/v1.12.1...v1.12.2

Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apply from: "https://raw.githubusercontent.com/refinedmods/refinedarchitect/v0.6.0/helper.gradle"
apply from: "https://raw.githubusercontent.com/refinedmods/refinedarchitect/v0.7.1/helper.gradle"

repositories {
maven {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public boolean keyPressed(int key, int scanCode, int modifiers) {
return true;
}

if (amountField.keyPressed(key, scanCode, modifiers)) {
if (amountField.keyPressed(key, scanCode, modifiers) || amountField.canConsumeInput()) {
return true;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ public boolean keyPressed(int key, int scanCode, int modifiers) {
return true;
}

if (nameField.keyPressed(key, scanCode, modifiers)) {
if (nameField.keyPressed(key, scanCode, modifiers) || nameField.canConsumeInput()) {
return true;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -686,7 +686,6 @@ public boolean keyPressed(int key, int scanCode, int modifiers) {
if (searchField.keyPressed(key, scanCode, modifiers)) {
return true;
}

return super.keyPressed(key, scanCode, modifiers);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,57 +65,47 @@ public boolean mouseClicked(double mouseX, double mouseY, int mouseButton) {

@Override
public boolean keyPressed(int keyCode, int scanCode, int modifier) {
boolean result = super.keyPressed(keyCode, scanCode, modifier);
if (super.keyPressed(keyCode, scanCode, modifier)) {
return true;
}

if (isFocused()) {
if (keyCode == GLFW.GLFW_KEY_UP) {
updateHistory(-1);

result = true;
} else if (keyCode == GLFW.GLFW_KEY_DOWN) {
updateHistory(1);

result = true;
} else if (keyCode == GLFW.GLFW_KEY_ENTER || keyCode == GLFW.GLFW_KEY_KP_ENTER) {
saveHistory();

if (canLoseFocus) {
setFocused(false);
}

result = true;
} else if (keyCode == GLFW.GLFW_KEY_ESCAPE) {
saveHistory();

if (!canLoseFocus) {
// If we can't lose focus,
// and we press escape,
// we unfocus ourselves,
// and close the screen immediately.
setFocused(false);

result = false; // Bubble the event up to the screen.
return false; // Bubble the event up to the screen.
} else {
// If we can lose focus,
// and we press escape,
// we unfocus ourselves.
// On the next escape press, the screen will close.
setFocused(false);

result = true;
return true; // Swallow
}
}
}

if (BaseScreen.isKeyDown(RSKeyBindings.FOCUS_SEARCH_BAR) && canLoseFocus) {
setFocused(!isFocused());

saveHistory();

result = true;
return true;
}

return result;
return isFocused() && canConsumeInput() && keyCode != GLFW.GLFW_KEY_ESCAPE;
}

private void updateHistory(int delta) {
Expand Down

0 comments on commit 0f83b3a

Please sign in to comment.