mirror of
https://github.com/microsoft/terminal.git
synced 2025-12-19 18:11:39 -05:00
Fix the bell sound when Alt+key is pressed. (#1006)
This commit is contained in:
@@ -162,6 +162,13 @@ LRESULT IslandWindow::MessageHandler(UINT const message, WPARAM const wparam, LP
|
|||||||
return 0; // eat the message
|
return 0; // eat the message
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
case WM_MENUCHAR:
|
||||||
|
{
|
||||||
|
// GH#891: return this LRESULT here to prevent the app from making a
|
||||||
|
// bell when alt+key is pressed. A menu is active and the user presses a
|
||||||
|
// key that does not correspond to any mnemonic or accelerator key,
|
||||||
|
return MAKELRESULT(0, MNC_CLOSE);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: handle messages here...
|
// TODO: handle messages here...
|
||||||
|
|||||||
Reference in New Issue
Block a user