1
1
mirror of https://github.com/wez/wezterm.git synced 2024-09-19 02:37:51 +03:00

keyboard: fixup build on win32

This commit is contained in:
Wez Furlong 2023-04-15 15:06:23 -07:00
parent 7ff88280f3
commit f5d8e52094
No known key found for this signature in database
GPG Key ID: 7A7F66A31EC9B387

View File

@ -30,6 +30,7 @@ use std::rc::Rc;
use std::sync::Mutex;
use wezterm_color_types::LinearRgba;
use wezterm_font::FontConfiguration;
use wezterm_input_types::KeyboardLedStatus;
use winapi::shared::minwindef::*;
use winapi::shared::ntdef::*;
use winapi::shared::windef::*;
@ -1949,6 +1950,7 @@ unsafe fn ime_composition(
let key = KeyEvent {
key: KeyCode::Composed(s),
modifiers: Modifiers::NONE,
leds: KeyboardLedStatus::empty(),
repeat_count: 1,
key_is_down: true,
raw: None,
@ -2419,6 +2421,7 @@ unsafe fn key(hwnd: HWND, msg: UINT, wparam: WPARAM, lparam: LPARAM) -> Option<L
phys_code,
raw_code: wparam as _,
scan_code: scan_code as _,
leds: KeyboardLedStatus::empty(),
modifiers,
repeat_count: 1,
key_is_down: !releasing,
@ -2490,6 +2493,7 @@ unsafe fn key(hwnd: HWND, msg: UINT, wparam: WPARAM, lparam: LPARAM) -> Option<L
let key = KeyEvent {
key: KeyCode::Char(c),
modifiers,
leds: KeyboardLedStatus::empty(),
repeat_count: 1,
key_is_down: !releasing,
raw: None,
@ -2619,6 +2623,7 @@ unsafe fn key(hwnd: HWND, msg: UINT, wparam: WPARAM, lparam: LPARAM) -> Option<L
let key = KeyEvent {
key,
modifiers,
leds: KeyboardLedStatus::empty(),
repeat_count: repeat,
key_is_down: !releasing,
raw: Some(raw_key_event),