Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
bf42a341
Commit
bf42a341
authored
Oct 19, 2006
by
Mikołaj Zalewski
Committed by
Alexandre Julliard
Oct 20, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wineconsole: Make most keys cancel the selection.
parent
4a94d09a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
9 deletions
+15
-9
user.c
programs/wineconsole/user.c
+15
-9
No files found.
programs/wineconsole/user.c
View file @
bf42a341
...
...
@@ -944,31 +944,31 @@ static void WCUSER_HandleSelectionKey(struct inner_data* data, BOOL down,
PRIVATE
(
data
)
->
has_selection
=
FALSE
;
WCUSER_SetSelection
(
data
,
0
);
WCUSER_CopySelectionToClipboard
(
data
);
break
;
return
;
case
VK_RIGHT
:
c1
=
PRIVATE
(
data
)
->
selectPt1
;
c2
=
PRIVATE
(
data
)
->
selectPt2
;
c1
.
X
++
;
c2
.
X
++
;
WCUSER_MoveSelection
(
data
,
c1
,
c2
);
break
;
return
;
case
VK_LEFT
:
c1
=
PRIVATE
(
data
)
->
selectPt1
;
c2
=
PRIVATE
(
data
)
->
selectPt2
;
c1
.
X
--
;
c2
.
X
--
;
WCUSER_MoveSelection
(
data
,
c1
,
c2
);
break
;
return
;
case
VK_UP
:
c1
=
PRIVATE
(
data
)
->
selectPt1
;
c2
=
PRIVATE
(
data
)
->
selectPt2
;
c1
.
Y
--
;
c2
.
Y
--
;
WCUSER_MoveSelection
(
data
,
c1
,
c2
);
break
;
return
;
case
VK_DOWN
:
c1
=
PRIVATE
(
data
)
->
selectPt1
;
c2
=
PRIVATE
(
data
)
->
selectPt2
;
c1
.
Y
++
;
c2
.
Y
++
;
WCUSER_MoveSelection
(
data
,
c1
,
c2
);
break
;
return
;
}
break
;
case
SHIFT_PRESSED
:
...
...
@@ -979,28 +979,34 @@ static void WCUSER_HandleSelectionKey(struct inner_data* data, BOOL down,
c2
=
PRIVATE
(
data
)
->
selectPt2
;
c2
.
X
++
;
WCUSER_MoveSelection
(
data
,
c1
,
c2
);
break
;
return
;
case
VK_LEFT
:
c1
=
PRIVATE
(
data
)
->
selectPt1
;
c2
=
PRIVATE
(
data
)
->
selectPt2
;
c2
.
X
--
;
WCUSER_MoveSelection
(
data
,
c1
,
c2
);
break
;
return
;
case
VK_UP
:
c1
=
PRIVATE
(
data
)
->
selectPt1
;
c2
=
PRIVATE
(
data
)
->
selectPt2
;
c2
.
Y
--
;
WCUSER_MoveSelection
(
data
,
c1
,
c2
);
break
;
return
;
case
VK_DOWN
:
c1
=
PRIVATE
(
data
)
->
selectPt1
;
c2
=
PRIVATE
(
data
)
->
selectPt2
;
c2
.
Y
++
;
WCUSER_MoveSelection
(
data
,
c1
,
c2
);
break
;
return
;
}
break
;
}
if
(
wParam
<
VK_SPACE
)
/* Shift, Alt, Ctrl, Num Lock etc. */
return
;
WCUSER_SetSelection
(
data
,
0
);
PRIVATE
(
data
)
->
has_selection
=
FALSE
;
}
/******************************************************************
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment