summaryrefslogtreecommitdiff
path: root/src/input.rs
diff options
context:
space:
mode:
authorChristian Duerr <contact@christianduerr.com>2018-03-09 23:09:42 +0100
committerJoe Wilm <joe@jwilm.com>2018-06-02 09:42:08 -0700
commit786e274dd1d6dce26404a2ad5672ee33e6115ad0 (patch)
treeec9ebe16b4052c623e4b02278297e64b48e32315 /src/input.rs
parent9a5a0ec546f4cbb6206c4c7cc9900211a3bbefa5 (diff)
downloadalacritty-786e274dd1d6dce26404a2ad5672ee33e6115ad0.tar.gz
alacritty-786e274dd1d6dce26404a2ad5672ee33e6115ad0.zip
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.
Diffstat (limited to 'src/input.rs')
-rw-r--r--src/input.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/input.rs b/src/input.rs
index 1974a348..35ae4a38 100644
--- a/src/input.rs
+++ b/src/input.rs
@@ -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