mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-31 16:18:22 +08:00
disable win single alt key event
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -576,16 +576,16 @@ class _MouseInteractiveViewerState extends State<MouseInteractiveViewer>
|
|||||||
final Offset global = event.position;
|
final Offset global = event.position;
|
||||||
|
|
||||||
if (_gestureIsSupported(_GestureType.scale)) {
|
if (_gestureIsSupported(_GestureType.scale)) {
|
||||||
late final shift = HardwareKeyboard.instance.isShiftPressed;
|
|
||||||
if (HardwareKeyboard.instance.isControlPressed) {
|
if (HardwareKeyboard.instance.isControlPressed) {
|
||||||
_handleMouseWheelScale(event, local, global);
|
_handleMouseWheelScale(event, local, global);
|
||||||
return;
|
return;
|
||||||
} else if (shift || HardwareKeyboard.instance.isAltPressed) {
|
}
|
||||||
|
final shift = HardwareKeyboard.instance.isShiftPressed;
|
||||||
|
if (shift || HardwareKeyboard.instance.isAltPressed) {
|
||||||
_handleMouseWheelPanAsScale(event, local, global, shift);
|
_handleMouseWheelPanAsScale(event, local, global, shift);
|
||||||
return;
|
return;
|
||||||
} else {
|
|
||||||
widget.pointerSignalFallback?.call(event);
|
|
||||||
}
|
}
|
||||||
|
widget.pointerSignalFallback?.call(event);
|
||||||
}
|
}
|
||||||
widget.onInteractionUpdate?.call(
|
widget.onInteractionUpdate?.call(
|
||||||
ScaleUpdateDetails(
|
ScaleUpdateDetails(
|
||||||
|
|||||||
@@ -179,6 +179,12 @@ Win32Window::MessageHandler(HWND hwnd,
|
|||||||
WPARAM const wparam,
|
WPARAM const wparam,
|
||||||
LPARAM const lparam) noexcept {
|
LPARAM const lparam) noexcept {
|
||||||
switch (message) {
|
switch (message) {
|
||||||
|
case WM_SYSCOMMAND:
|
||||||
|
if (wparam == SC_KEYMENU && (lparam >> 16) <= 0) {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
|
||||||
case WM_DESTROY:
|
case WM_DESTROY:
|
||||||
window_handle_ = nullptr;
|
window_handle_ = nullptr;
|
||||||
Destroy();
|
Destroy();
|
||||||
|
|||||||
Reference in New Issue
Block a user