Terminal: Fix pagewise scrolling in alternate screen buffer mode

It still used the old modifiers. Now it's shift as elsewhere.
This commit is contained in:
Ingo Weinhold 2014-10-26 13:18:07 +01:00
parent 831abecd6a
commit f76e8e9d92

View File

@ -1686,9 +1686,7 @@ TermView::MessageReceived(BMessage *msg)
// pressed
int32 steps;
const char* stepString;
if ((modifiers()
& (B_OPTION_KEY | B_COMMAND_KEY | B_CONTROL_KEY))
!= 0) {
if ((modifiers() & B_SHIFT_KEY) != 0) {
// pagewise
stepString = deltaY > 0
? PAGE_DOWN_KEY_CODE : PAGE_UP_KEY_CODE;