Merge pull request #3540 from refinedmods/release/1.12.3

Release v1.12.3
This commit is contained in:
Raoul
2023-07-07 21:24:05 +02:00
committed by GitHub
14 changed files with 29 additions and 30 deletions

View File

@@ -8,7 +8,7 @@ on:
types: [ opened, synchronize, reopened ] types: [ opened, synchronize, reopened ]
jobs: jobs:
build: build:
uses: refinedmods/refinedarchitect/.github/workflows/build.yml@v0.6.0 uses: refinedmods/refinedarchitect/.github/workflows/build.yml@v0.7.1
with: with:
mutation-testing: false mutation-testing: false
secrets: inherit secrets: inherit

View File

@@ -17,7 +17,7 @@ on:
type: string type: string
jobs: jobs:
draft: draft:
uses: refinedmods/refinedarchitect/.github/workflows/draft-release.yml@v0.6.0 uses: refinedmods/refinedarchitect/.github/workflows/draft-release.yml@v0.7.1
with: with:
release-type: ${{ inputs.release-type }} release-type: ${{ inputs.release-type }}
version-number-override: ${{ inputs.version-number-override }} version-number-override: ${{ inputs.version-number-override }}

View File

@@ -4,4 +4,4 @@ on:
types: [ labeled, unlabeled, reopened ] types: [ labeled, unlabeled, reopened ]
jobs: jobs:
unsupported-labeler: 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

View File

@@ -7,7 +7,7 @@ on:
- closed - closed
jobs: jobs:
publish-release: 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 secrets: inherit
with: with:
project-name: 'Refined Storage' project-name: 'Refined Storage'

View File

@@ -4,4 +4,4 @@ on:
- cron: '0 0 * * *' - cron: '0 0 * * *'
jobs: jobs:
lock: 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

View File

@@ -2,4 +2,4 @@ name: Validate branch name
on: [ pull_request ] on: [ pull_request ]
jobs: jobs:
validate-branch-name: 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

View File

@@ -4,4 +4,6 @@ on:
types: [ opened, synchronize, reopened, ready_for_review, labeled, unlabeled ] types: [ opened, synchronize, reopened, ready_for_review, labeled, unlabeled ]
jobs: jobs:
validate-changelog: validate-changelog:
uses: refinedmods/refinedarchitect/.github/workflows/validate-changelog.yml@v0.6.0 uses: refinedmods/refinedarchitect/.github/workflows/validate-changelog.yml@v0.7.1
with:
validation-level: 'warn'

View File

@@ -2,4 +2,4 @@ name: Validate commit messages
on: [ pull_request ] on: [ pull_request ]
jobs: jobs:
validate-commit-messages: 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

View File

@@ -7,6 +7,12 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [Unreleased] ## [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 ## [1.12.2] - 2023-07-05
### Fixed ### Fixed
@@ -3469,7 +3475,9 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
- Internal test release. - 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 [1.12.2]: https://github.com/refinedmods/refinedstorage/compare/v1.12.1...v1.12.2

View File

@@ -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 { repositories {
maven { maven {

View File

@@ -81,7 +81,7 @@ public class DetectorScreen extends BaseScreen<DetectorContainerMenu> {
return true; return true;
} }
if (amountField.keyPressed(key, scanCode, modifiers)) { if (amountField.keyPressed(key, scanCode, modifiers) || amountField.canConsumeInput()) {
return true; return true;
} }

View File

@@ -101,7 +101,7 @@ public class FilterScreen extends BaseScreen<FilterContainerMenu> {
return true; return true;
} }
if (nameField.keyPressed(key, scanCode, modifiers)) { if (nameField.keyPressed(key, scanCode, modifiers) || nameField.canConsumeInput()) {
return true; return true;
} }

View File

@@ -686,7 +686,6 @@ public class GridScreen extends BaseScreen<GridContainerMenu> implements IScreen
if (searchField.keyPressed(key, scanCode, modifiers)) { if (searchField.keyPressed(key, scanCode, modifiers)) {
return true; return true;
} }
return super.keyPressed(key, scanCode, modifiers); return super.keyPressed(key, scanCode, modifiers);
} }

View File

@@ -65,57 +65,47 @@ public class SearchWidget extends EditBox {
@Override @Override
public boolean keyPressed(int keyCode, int scanCode, int modifier) { 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 (isFocused()) {
if (keyCode == GLFW.GLFW_KEY_UP) { if (keyCode == GLFW.GLFW_KEY_UP) {
updateHistory(-1); updateHistory(-1);
result = true;
} else if (keyCode == GLFW.GLFW_KEY_DOWN) { } else if (keyCode == GLFW.GLFW_KEY_DOWN) {
updateHistory(1); updateHistory(1);
result = true;
} else if (keyCode == GLFW.GLFW_KEY_ENTER || keyCode == GLFW.GLFW_KEY_KP_ENTER) { } else if (keyCode == GLFW.GLFW_KEY_ENTER || keyCode == GLFW.GLFW_KEY_KP_ENTER) {
saveHistory(); saveHistory();
if (canLoseFocus) { if (canLoseFocus) {
setFocused(false); setFocused(false);
} }
result = true;
} else if (keyCode == GLFW.GLFW_KEY_ESCAPE) { } else if (keyCode == GLFW.GLFW_KEY_ESCAPE) {
saveHistory(); saveHistory();
if (!canLoseFocus) { if (!canLoseFocus) {
// If we can't lose focus, // If we can't lose focus,
// and we press escape, // and we press escape,
// we unfocus ourselves, // we unfocus ourselves,
// and close the screen immediately. // and close the screen immediately.
setFocused(false); setFocused(false);
return false; // Bubble the event up to the screen.
result = false; // Bubble the event up to the screen.
} else { } else {
// If we can lose focus, // If we can lose focus,
// and we press escape, // and we press escape,
// we unfocus ourselves. // we unfocus ourselves.
// On the next escape press, the screen will close. // On the next escape press, the screen will close.
setFocused(false); setFocused(false);
return true; // Swallow
result = true;
} }
} }
} }
if (BaseScreen.isKeyDown(RSKeyBindings.FOCUS_SEARCH_BAR) && canLoseFocus) { if (BaseScreen.isKeyDown(RSKeyBindings.FOCUS_SEARCH_BAR) && canLoseFocus) {
setFocused(!isFocused()); setFocused(!isFocused());
saveHistory(); saveHistory();
return true;
result = true;
} }
return result; return isFocused() && canConsumeInput() && keyCode != GLFW.GLFW_KEY_ESCAPE;
} }
private void updateHistory(int delta) { private void updateHistory(int delta) {