mirror of
https://github.com/wez/wezterm.git
synced 2024-11-13 07:22:52 +03:00
window: fix test build. remove dead code
This commit is contained in:
parent
6feabb8178
commit
1a342adfc1
@ -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() {
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user