Skip to content

Commit 744906c

Browse files
authored
[CQ] migrate off deprecated InputEvent bitmasks (#8350)
`InputEvent` is deprecated in favor of `ActionEvent`s for bitmasks. <img width="1242" height="150" alt="image" src="https://github.com/user-attachments/assets/2161a117-c1d4-4644-a594-e8058cf0bc5f" /> --- - [x] I’ve reviewed the contributor guide and applied the relevant portions to this PR. <details> <summary>Contribution guidelines:</summary><br> - See our [contributor guide]([https://github.com/dart-lang/sdk/blob/main/CONTRIBUTING.md](https://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md#overview) for general expectations for PRs. - Larger or significant changes should be discussed in an issue before creating a PR. - Dart contributions to our repos should follow the [Dart style guide](https://dart.dev/guides/language/effective-dart) and use `dart format`. - Java and Kotlin contributions should strive to follow Java and Kotlin best practices ([discussion](#8098)). </details>
1 parent fd05479 commit 744906c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/io/flutter/actions/OpenAndroidModule.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
import org.jetbrains.annotations.Nullable;
2222
import org.jetbrains.plugins.gradle.util.GradleConstants;
2323

24-
import java.awt.event.InputEvent;
24+
import java.awt.event.ActionEvent;
2525
import java.nio.file.Path;
2626

2727
import static com.android.tools.idea.gradle.project.ProjectImportUtil.findGradleTarget;
@@ -42,8 +42,8 @@ public void actionPerformed(@NotNull AnActionEvent e) {
4242
}
4343
final int modifiers = e.getModifiers();
4444
// From ReopenProjectAction.
45-
final boolean forceOpenInNewFrame = BitUtil.isSet(modifiers, InputEvent.CTRL_MASK)
46-
|| BitUtil.isSet(modifiers, InputEvent.SHIFT_MASK)
45+
final boolean forceOpenInNewFrame = BitUtil.isSet(modifiers, ActionEvent.CTRL_MASK)
46+
|| BitUtil.isSet(modifiers, ActionEvent.SHIFT_MASK)
4747
|| e.getPlace() == ActionPlaces.WELCOME_SCREEN;
4848

4949
VirtualFile sourceFile = e.getData(CommonDataKeys.VIRTUAL_FILE);

0 commit comments

Comments
 (0)