mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-12 05:14:10 +02:00
HasSelection fix for cursor up/down
This commit is contained in:
parent
fe9286f41c
commit
da58610736
1 changed files with 1 additions and 1 deletions
|
@ -2366,7 +2366,7 @@ namespace Beefy.widgets
|
||||||
case KeyCode.Down:
|
case KeyCode.Down:
|
||||||
{
|
{
|
||||||
int32 aDir = (keyCode == KeyCode.Up) ? -1 : 1;
|
int32 aDir = (keyCode == KeyCode.Up) ? -1 : 1;
|
||||||
if ((mSelection != null) && (!mWidgetWindow.IsKeyDown(KeyCode.Shift)))
|
if ((HasSelection()) && (!mWidgetWindow.IsKeyDown(KeyCode.Shift)))
|
||||||
{
|
{
|
||||||
var lineAndCol = CursorLineAndColumn;
|
var lineAndCol = CursorLineAndColumn;
|
||||||
var usePos = (aDir < 0) ? (int32)mSelection.Value.MinPos : mSelection.Value.MaxPos;
|
var usePos = (aDir < 0) ? (int32)mSelection.Value.MinPos : mSelection.Value.MaxPos;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue