8000 [pull] main from petoncle:main by pull[bot] · Pull Request #3 · Mu-L/mousemaster · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

[pull] main from petoncle:main #3

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 8, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion notes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -94,4 +94,14 @@
a hint is selected, it uses the current zoom to determine the actual position of the hint
+ hint.screen-prefix-selection-keys=1 2 (default to none)
+ hint-area-filter.leftscreen=1920x1080
+ mode.hint.leftscreen.grid-cell-width
+ mode.hint.leftscreen.grid-cell-width

2025-06-21T08:02:21.450 [main] ERROR mousemaster.MousemasterApplication -
java.lang.NullPointerException: null
at mousemaster.WindowsVirtualKey.activeKeyboardLayout(WindowsVirtualKey.java:377)
at mousemaster.WindowsPlatform.activeKeyboardLayout(WindowsPlatform.java:230)
at mousemaster.Mousemaster.updateActiveKeyboardLayout(Mousemaster.java:110)
at mousemaster.Mousemaster.run(Mousemaster.java:55)
at mousemaster.MousemasterApplication.main(MousemasterApplication.java:110)
at java.base@21.0.1/java.lang.invoke.LambdaForm$DMH/sa346b79c.invokeStaticInit(LambdaForm$DMH)
2025-06-21T08:02:21.457 [main] INFO mousemaster.MousemasterApplication - An error has occurred. The details of the error should be right above this message. Press Enter in this window to close mousemaster.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>mousemaster</groupId>
<artifactId>mousemaster</artifactId>
<version>79</version>
<version>80</version>
<name>mousemaster</name>
<!--
See https://graalvm.github.io/native-build-tools/latest/maven-plugin-quickstart.html
Expand Down
15 changes: 14 additions & 1 deletion src/main/java/mousemaster/KeyboardManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -148,10 +148,21 @@ else if (processingSet.isPartOfComboSequence()) {
processingSet.isUnswallowedHintEnd()) {
PressKeyEventProcessingSet releaseProcessingSet =
comboWatcher.keyEvent(keyEvent);
if (!currentlyPressedKeys.containsKey(key)) {
// comboWatcher runs a command which can show the hint which calls
// window.show() from WindowsOverlay#transitionHintContainers.
// When doing that, control goes back to JNA which can call the Windows callback,
// which calls WindowsPlatform#keyEvent.
// This second callback should not happen because
// we are already in the callback. Also, the second callback does not
// execute everything: a log line placed in WindowsPlatform#keyEvent would be
// displayed only by the first callback.
return eatAndRegurgitates(processingSet.mustBeEaten(), Set.of());
}
if (!releaseProcessingSet.handled()) {
keysToRegurgitate = regurgitatePressedKeys(null);
}
else if (releaseProcessingSet.isPartOfCompletedComboSequence()) {
else if (releaseProcessingSet.isPartOfCompletedComboSequence()) {
for (Map.Entry<Combo, PressKeyEventProcessing> entry : releaseProcessingSet.processingByCombo()
.entrySet()) {
// Mark current combo as completed (so it is not regurgitated, e.g. +rightalt -rightalt).
Expand Down Expand Up @@ -179,11 +190,13 @@ else if (releaseProcessingSet.isPartOfCompletedComboSequence()) {
}
}
PressKeyEventProcessingSet pressedProcessingSet = currentlyPressedKeys.remove(key);
// logger.info("Removed key " + key, new Exception());
// Only a released event corresponding to a pressed event that was eaten should be eaten.
return eatAndRegurgitates(pressedProcessingSet.mustBeEaten(), keysToRegurgitate);
}
else {
currentlyPressedKeys.remove(key);
// logger.info("Removed key " + key, new Exception());
return eatAndRegurgitates(false, regurgitatePressedKeys(null));
}
}
Expand Down
0