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
6f8f771e
Commit
6f8f771e
authored
Feb 13, 2001
by
Chris Morgan
Committed by
Alexandre Julliard
Feb 13, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implement keyboard shortcut F2 to rename files and directories in the
shellview (and in common dialogs).
parent
0b64cfb3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
1 deletion
+20
-1
shlview.c
dlls/shell32/shlview.c
+20
-1
No files found.
dlls/shell32/shlview.c
View file @
6f8f771e
...
...
@@ -1267,10 +1267,29 @@ static LRESULT ShellView_OnNotify(IShellViewImpl * This, UINT CtlID, LPNMHDR lpn
msg.pt = 0;*/
LPNMLVKEYDOWN
plvKeyDown
=
(
LPNMLVKEYDOWN
)
lpnmh
;
/* initiate a rename of the selected file or directory */
if
(
plvKeyDown
->
wVKey
==
VK_F2
)
{
/* see how many files are selected */
int
i
=
ListView_GetSelectedCount
(
This
->
hWndList
);
/* get selected item */
if
(
i
==
1
)
{
/* get selected item */
i
=
ListView_GetNextItem
(
This
->
hWndList
,
-
1
,
LVNI_SELECTED
);
ListView_EnsureVisible
(
This
->
hWndList
,
i
,
0
);
ListView_EditLabelA
(
This
->
hWndList
,
i
);
}
}
#if 0
TranslateAccelerator(This->hWnd, This->hAccel, &msg)
#endif
FIXME
(
"LVN_KEYDOWN key=0x%08x
\n
"
,
plvKeyDown
->
wVKey
);
else
FIXME
(
"LVN_KEYDOWN key=0x%08x
\n
"
,
plvKeyDown
->
wVKey
);
}
break
;
default:
...
...
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