Disable faux scrolling when shift is pressed

To make it possible to access the native scrollback buffer in the
alternate screen without having to disable faux scrolling, faux
scrolling is now disabled when the `shift` key is held down.

This should allow alacritty to have the best of both worlds, a native
scrollback buffer in the alternate screen buffer and faux scrolling.
This commit is contained in:
Christian Duerr 2018-03-09 23:09:42 +01:00 committed by Joe Wilm
parent 9a5a0ec546
commit 786e274dd1
1 changed files with 1 additions and 1 deletions

View File

@ -483,7 +483,7 @@ impl<'a, A: ActionContext + 'a> Processor<'a, A> {
if self.ctx.terminal_mode().intersects(mouse_modes) {
self.mouse_report(code, ElementState::Pressed, modifiers);
} else if self.ctx.terminal_mode().contains(TermMode::ALT_SCREEN)
&& faux_scrollback_lines > 0
&& faux_scrollback_lines > 0 && !modifiers.shift
{
// Faux scrolling
let cmd = code + 1; // 64 + 1 = A, 65 + 1 = B