mirror of
https://review.haiku-os.org/haiku
synced 2024-11-23 07:18:40 +01:00
BTextView: Stylish fix, -x is clear we don't need -1 * x
Change-Id: I38a5e6c88e2ba3b2f82c49aa760942e1799a7595 Reviewed-on: https://review.haiku-os.org/c/haiku/+/7171 Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org> Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
This commit is contained in:
parent
2e1f37d6de
commit
0509d19b91
@ -3343,7 +3343,7 @@ BTextView::_HandleArrowKey(uint32 arrowKey, int32 modifiers)
|
||||
switch (arrowKey) {
|
||||
case B_LEFT_ARROW:
|
||||
if (!fEditable && !fSelectable)
|
||||
_ScrollBy(-1 * kHorizontalScrollBarStep, 0);
|
||||
_ScrollBy(-kHorizontalScrollBarStep, 0);
|
||||
else if (fSelStart != fSelEnd && !shiftKeyDown)
|
||||
fCaretOffset = fSelStart;
|
||||
else {
|
||||
@ -3398,7 +3398,7 @@ BTextView::_HandleArrowKey(uint32 arrowKey, int32 modifiers)
|
||||
case B_UP_ARROW:
|
||||
{
|
||||
if (!fEditable && !fSelectable)
|
||||
_ScrollBy(0, -1 * kVerticalScrollBarStep);
|
||||
_ScrollBy(0, -kVerticalScrollBarStep);
|
||||
else if (fSelStart != fSelEnd && !shiftKeyDown)
|
||||
fCaretOffset = fSelStart;
|
||||
else {
|
||||
|
Loading…
Reference in New Issue
Block a user