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:
parent
9a5a0ec546
commit
786e274dd1
|
@ -483,7 +483,7 @@ impl<'a, A: ActionContext + 'a> Processor<'a, A> {
|
||||||
if self.ctx.terminal_mode().intersects(mouse_modes) {
|
if self.ctx.terminal_mode().intersects(mouse_modes) {
|
||||||
self.mouse_report(code, ElementState::Pressed, modifiers);
|
self.mouse_report(code, ElementState::Pressed, modifiers);
|
||||||
} else if self.ctx.terminal_mode().contains(TermMode::ALT_SCREEN)
|
} else if self.ctx.terminal_mode().contains(TermMode::ALT_SCREEN)
|
||||||
&& faux_scrollback_lines > 0
|
&& faux_scrollback_lines > 0 && !modifiers.shift
|
||||||
{
|
{
|
||||||
// Faux scrolling
|
// Faux scrolling
|
||||||
let cmd = code + 1; // 64 + 1 = A, 65 + 1 = B
|
let cmd = code + 1; // 64 + 1 = A, 65 + 1 = B
|
||||||
|
|
Loading…
Reference in New Issue