Skip to content

Commit

Permalink
handle "menu" key in windows
Browse files Browse the repository at this point in the history
  • Loading branch information
gim913 committed Feb 17, 2025
1 parent 91c99ba commit c7023b6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crates/gpui/src/platform/windows/events.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1235,6 +1235,7 @@ fn parse_syskeydown_msg_keystroke(wparam: WPARAM) -> Option<Keystroke> {
VK_ESCAPE => "escape",
VK_INSERT => "insert",
VK_DELETE => "delete",
VK_APPS => "menu",
_ => {
let basic_key = basic_vkcode_to_string(vk_code, modifiers);
if basic_key.is_some() {
Expand Down Expand Up @@ -1289,6 +1290,7 @@ fn parse_keydown_msg_keystroke(wparam: WPARAM) -> Option<KeystrokeOrModifier> {
VK_ESCAPE => "escape",
VK_INSERT => "insert",
VK_DELETE => "delete",
VK_APPS => "menu",
_ => {
if is_modifier(VIRTUAL_KEY(vk_code)) {
return Some(KeystrokeOrModifier::Modifier(modifiers));
Expand Down

0 comments on commit c7023b6

Please sign in to comment.