hotfix(controls): do not capture the ENTER key
This commit is contained in:
parent
5592a83d4a
commit
a4cd34177f
2 changed files with 3 additions and 3 deletions
|
|
@ -250,7 +250,7 @@ pub fn start(mut os_input: Box<dyn OsApi>, opts: Opt) {
|
||||||
send_screen_instructions.send(ScreenInstruction::ResizeLeft).unwrap();
|
send_screen_instructions.send(ScreenInstruction::ResizeLeft).unwrap();
|
||||||
} else if buffer[0] == 12 { // ctrl-l
|
} else if buffer[0] == 12 { // ctrl-l
|
||||||
send_screen_instructions.send(ScreenInstruction::ResizeRight).unwrap();
|
send_screen_instructions.send(ScreenInstruction::ResizeRight).unwrap();
|
||||||
} else if buffer[0] == 13 { // ctrl-m
|
} else if buffer[0] == 26 { // ctrl-z
|
||||||
send_pty_instructions.send(PtyInstruction::SpawnTerminal(None)).unwrap();
|
send_pty_instructions.send(PtyInstruction::SpawnTerminal(None)).unwrap();
|
||||||
} else if buffer[0] == 14 { // ctrl-n
|
} else if buffer[0] == 14 { // ctrl-n
|
||||||
send_pty_instructions.send(PtyInstruction::SpawnTerminalVertically(None)).unwrap();
|
send_pty_instructions.send(PtyInstruction::SpawnTerminalVertically(None)).unwrap();
|
||||||
|
|
|
||||||
|
|
@ -73,7 +73,7 @@ pub fn split_largest_terminal () {
|
||||||
ws_ypixel: 0,
|
ws_ypixel: 0,
|
||||||
};
|
};
|
||||||
let mut fake_input_output = get_fake_os_input(&fake_win_size);
|
let mut fake_input_output = get_fake_os_input(&fake_win_size);
|
||||||
fake_input_output.add_terminal_input(&[13, 13, 13, 17]); // split-largest_terminal * 3 and quit (ctrl-m + ctrl-m + ctrl-m + ctrl-m + ctrl-q)
|
fake_input_output.add_terminal_input(&[26, 26, 26, 17]); // split-largest_terminal * 3 and quit (ctrl-z + ctrl-z + ctrl-z + ctrl-z + ctrl-q)
|
||||||
start(Box::new(fake_input_output.clone()), Opt::default());
|
start(Box::new(fake_input_output.clone()), Opt::default());
|
||||||
let output_frames = fake_input_output.stdout_writer.output_frames.lock().unwrap();
|
let output_frames = fake_input_output.stdout_writer.output_frames.lock().unwrap();
|
||||||
let snapshots = get_output_frame_snapshots(&output_frames, &fake_win_size);
|
let snapshots = get_output_frame_snapshots(&output_frames, &fake_win_size);
|
||||||
|
|
@ -147,7 +147,7 @@ pub fn max_panes () {
|
||||||
ws_ypixel: 0,
|
ws_ypixel: 0,
|
||||||
};
|
};
|
||||||
let mut fake_input_output = get_fake_os_input(&fake_win_size);
|
let mut fake_input_output = get_fake_os_input(&fake_win_size);
|
||||||
fake_input_output.add_terminal_input(&[13, 13, 13, 13, 17]); // split-largest_terminal * 4 and quit (ctrl-m + ctrl-m + ctrl-m + ctrl-m + ctrl-q)
|
fake_input_output.add_terminal_input(&[26, 26, 26, 26, 17]); // split-largest_terminal * 4 and quit (ctrl-z + ctrl-z + ctrl-z + ctrl-z + ctrl-q)
|
||||||
let mut opts = Opt::default();
|
let mut opts = Opt::default();
|
||||||
opts.max_panes = Some(4);
|
opts.max_panes = Some(4);
|
||||||
start(Box::new(fake_input_output.clone()), opts);
|
start(Box::new(fake_input_output.clone()), opts);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue