1
1
mirror of https://github.com/wez/wezterm.git synced 2024-11-23 15:04:36 +03:00

window: fix test build. remove dead code

This commit is contained in:
Wez Furlong 2022-01-02 15:37:34 -07:00
parent 6feabb8178
commit 1a342adfc1
2 changed files with 4 additions and 8 deletions

View File

@ -51,7 +51,10 @@ impl MyWindow {
WindowEvent::KeyEvent(key) => {
eprintln!("{:?}", key);
win.set_cursor(Some(MouseCursor::Text));
win.default_key_processing(key);
}
WindowEvent::RawKeyEvent(key) => {
eprintln!("{:?}", key);
win.set_cursor(Some(MouseCursor::Text));
}
WindowEvent::NeedRepaint => {
if let Some(gl) = self.gl.as_mut() {

View File

@ -153,11 +153,6 @@ pub enum WindowEvent {
RawKeyEvent(RawKeyEvent),
/// Called to handle a key event.
/// If you didn't handle this event, then you must call
/// window.default_key_processing(key) to allow the system to perform
/// the default key handling.
/// This is important on Windows for ALT keys to continue working
/// correctly.
KeyEvent(KeyEvent),
MouseEvent(MouseEvent),
@ -229,8 +224,6 @@ pub trait WindowOps {
/// Change the titlebar text for the window
fn set_title(&self, title: &str);
fn default_key_processing(&self, _key: KeyEvent) {}
/// Resize the inner or client area of the window
fn set_inner_size(&self, width: usize, height: usize);