Access keys, shortcut keys, and drag-and-drop shortcuts

You can use access keys, shortcut keys, and drag-and-drop shortcuts to work quickly and efficiently in P4V.

Access keys

On Windows and Linux, you can use access keys to open menus and navigate the user interface. An access key is an alphanumeric key that you can use instead of a mouse pointer to activate menu or dialog options. It correlates to a designated character in a control label. Access keys are associated only with controls that have text labels. In P4V, you can identify access keys by looking for underlined characters in labels.

To access a menu and to activate a control within a dialog box, you need to press ALT+<letter>. For example:

  • To open the File menu, press ALT+F.
  • To select the Latest revision option in the Diff dialog, press ALT+L.

Within a menu, you only need to press the <key> key. For example, to switch to the Depot Tree view:

  1. Press ALT+V to open the View menu.
  2. Press D to switch to the Depot Tree view (if your current selection is the Workspace Tree).

Shortcut keys

Shortcut keys allow more experienced users to quickly perform select actions. For example:

  • To switch to the Depot Tree, press Ctrl+9.
  • To switch to the Workspace Tree, press Ctrl+0.

Where applicable, P4V displays shortcut keys to the right of a menu label.

The following table lists common shortcut keys.

Action Shortcut Key
Show in Explorer Ctrl+Shift+S
Print Ctrl+P
Undo Ctrl+Z
Redo Ctrl+Y
Cut Ctrl+X
Copy Ctrl+C
Paste Ctrl+V
Select All Ctrl+A
Find Ctrl+F
Find File Ctrl+Shift+F
Go To Ctrl+G
View Depot Tree Ctrl+9
View Workspace Tree Ctrl+0
View Pending Changelists Ctrl+1
View Submitted Changelists Ctrl+2
View Branch Mappings Ctrl+3
View Labels Ctrl+4
View Workspaces Ctrl+5
View Jobs Ctrl+6
View Streams Ctrl+7
View Remote Mappings Ctrl+8
Refresh All F5
Get Latest Revision Ctrl+Shift+G
Check Out Ctrl+E
Submit Ctrl+S
Revert Ctrl+R
Initialize Personal Server Ctrl+Shift+I
Fetch Ctrl+Shift+T
Push Ctrl+Shift+P
Lock Ctrl+Shift+L
Unlock Ctrl+Shift+U
Open Connection Ctrl+O
Open P4Admin Ctrl+Shift+A
Diff Against Ctrl+Shift+D
Show Revision Graph Ctrl+Shift+R
Show Timelapse View Ctrl+Shift+T
Open P4V Help F1
Show System Info Ctrl+I

The following table lists the default shortcut keys. You can also set up custom shortcuts. Go to Edit > Preferences (Windows) or P4V > Preferences (Mac) and set up your shortcuts on the Shortcuts page in the Preferences dialog.

Action Mac Windows

Display Workspace tab in Tree pane

+0

+0

Display pending changelists

+1

+1

Display submitted changelists

+2

+2

Display branches

+3

+3

Display labels

+4

+4

Display workspaces

+5

+5

Display jobs

+6

+5

Display Depot tab in Tree pane

+9

+9

Select all objects

+A

+A

Copy text, path of selected file or folder, or contents of selected specification

+C

+C

Diff selected file

+D

+D

Check out file

+E

+E

Find

+F

+F

Close the current window

+F4

+F4

Go to a specification

+G

+G

Display Helix Server information in log window

+I

+I

Lock files

+L

+L

Create new specification

+N

+N

Open a new connection

+O

+O

Print selected item

+P

+P

Revert selected files

+R

+R

Submit selected changelist

+S

+S

Display Administration Tool

++A

++A

Copy depot path of selected file or folder to clipboard

++C

++C

Get latest revision

++G

++G

Show in Stream Graph

++M

++M

Display Revision Graph of selected file

++R

++R

Display Time-lapse Display

++T

++T

Display revision history of selected file/folder

+T

+T

Unlock files

+U

+U

Paste text

+V

+V

Close the current window

+W

+W

Cut text

+X

+X

Redo last edit

+Y

+Y

Undo last edit

+Z

+Z

Drag-and-drop shortcuts

P4V supports drag-and-drop shortcuts for common tasks. To enable or disable drag-and-drop file integration or diffing, go to P4V > Preferences (Mac) or Edit > Preferences (Windows) and set the drag-and-drop options on the Behavior page.

  • To add a file to Perforce, drag it from a file browser (such as Windows Explorer) to a pending changelist.
  • To get a file revision at a submitted changelist, workspace, label or file revision, open the Get Revision dialog and then drag the submitted changelist, workspace, label or file revision to the text field on the right of the Specify revision using: option.
  • To integrate (merge) files, drag the source folder to the target folder. The Merge/Integrate dialog opens, where you can refine your integration criteria.
  • To label a file, drag a file or a folder to a label. Alternately, drag a label onto a file or folder.
  • To diff two file revisions, drop a file or a file revision onto another file revision. To display file revisions, right-click the file and choose File History.
  • To diff revisions of different files, display the File History for both files, then drag a revision from one window to the other and drop it on the other revision.
  • To diff two folder revisions, drop a folder revision onto another folder revision. To display folder revisions, right-click the folder and choose Folder History.
  • To add files to a pending changelist, drop files onto the pending changelist itself, or onto the Files field of the pending changelist’s Submit form.
  • To move a file from one changelist to another, drag files from the source Submit form to the target Submit form. Alternately, choose Display>Pending Changelists, and drag the files from the source changelist to the target changelist.
  • To filter the pending changelists, submitted changelists, labels, or jobs by file path, drag files or folders from the Tree pane to the Filters pane in the respective tab.
  • To add a job to a changelist, drag the job from the Jobs tab of the right pane to the Jobs field of the pending changelist. You cannot attach a job to a submitted changelist.
  • To locate a file in the depot, drag the file from a pending or submitted changelist to the address bar (which is located below the P4V toolbar). Alternatively, copy the depot or workspace path (for example, select a file in a submitted changelist and choose Edit>Copy), then paste the path into the depot or workspace pane.
  • To switch panes, drag any selected object to the toolbar button for the desired pane. For example, to add a job to a submitted changelist, drag the job from the Jobs tab to the submitted changelists button submittedchangelistbutton. P4V displays the Submitted Changelist tab. Drop the job on the target changelist.
  • For streams drag-and-drop shortcuts, see Using the Stream Graph.