1 from PyQt4
.QtGui
import QKeySequence
2 from PyQt4
.QtCore
import Qt
5 STAGE_MODIFIED
= Qt
.AltModifier
+ Qt
.Key_A
7 BRANCH
= Qt
.ControlModifier
+ Qt
.Key_B
8 CHECKOUT
= Qt
.AltModifier
+ Qt
.Key_B
9 CHERRY_PICK
= Qt
.ControlModifier
+ Qt
.ShiftModifier
+ Qt
.Key_C
10 DIFFSTAT
= Qt
.AltModifier
+ Qt
.Key_D
11 DIFF
= Qt
.ControlModifier
+ Qt
.Key_D
12 DIFF_SECONDARY
= Qt
.ControlModifier
+ Qt
.ShiftModifier
+ Qt
.Key_D
13 EDIT
= Qt
.ControlModifier
+ Qt
.Key_E
14 EDIT_SECONDARY
= Qt
.ControlModifier
+ Qt
.ShiftModifier
+ Qt
.Key_E
15 EXPORT
= Qt
.AltModifier
+ Qt
.Key_E
17 FETCH
= Qt
.ControlModifier
+ Qt
.Key_F
18 FILTER
= Qt
.ControlModifier
+ Qt
.ShiftModifier
+ Qt
.Key_F
19 GREP
= Qt
.ControlModifier
+ Qt
.Key_G
22 HISTORY
= Qt
.ControlModifier
+ Qt
.ShiftModifier
+ Qt
.Key_H
23 SIGNOFF
= Qt
.ControlModifier
+ Qt
.Key_I
25 MOVE_DOWN_SECONDARY
= Qt
.AltModifier
+ Qt
.Key_J
26 MOVE_DOWN_TERTIARY
= Qt
.ShiftModifier
+ Qt
.Key_J
28 MOVE_UP_SECONDARY
= Qt
.AltModifier
+ Qt
.Key_K
29 MOVE_UP_TERTIARY
= Qt
.ShiftModifier
+ Qt
.Key_K
31 FOCUS
= Qt
.ControlModifier
+ Qt
.Key_L
32 AMEND
= Qt
.ControlModifier
+ Qt
.Key_M
33 MERGE
= Qt
.ControlModifier
+ Qt
.ShiftModifier
+ Qt
.Key_M
34 OPEN
= Qt
.ControlModifier
+ Qt
.Key_O
35 PUSH
= Qt
.ControlModifier
+ Qt
.Key_P
36 PULL
= Qt
.ControlModifier
+ Qt
.ShiftModifier
+ Qt
.Key_P
38 QUIT
= Qt
.ControlModifier
+ Qt
.Key_Q
39 REFRESH
= Qt
.ControlModifier
+ Qt
.Key_R
40 REFRESH_SECONDARY
= Qt
.Key_F5
41 REFRESH_HOTKEYS
= (REFRESH
, REFRESH_SECONDARY
)
43 STAGE_SELECTION
= Qt
.ControlModifier
+ Qt
.Key_S
44 STASH
= Qt
.AltModifier
+ Qt
.ShiftModifier
+ Qt
.Key_S
45 FINDER
= Qt
.ControlModifier
+ Qt
.Key_T
46 FINDER_SECONDARY
= Qt
.Key_T
47 TERMINAL
= Qt
.ControlModifier
+ Qt
.ShiftModifier
+ Qt
.Key_T
48 STAGE_UNTRACKED
= Qt
.AltModifier
+ Qt
.Key_U
49 REVERT
= Qt
.ControlModifier
+ Qt
.Key_U
51 UNDO
= Qt
.ControlModifier
+ Qt
.Key_Z
54 START_OF_LINE
= Qt
.Key_0
57 BACKSPACE
= Qt
.Key_Backspace
58 TRASH
= Qt
.ControlModifier
+ Qt
.Key_Backspace
59 DELETE_FILE
= Qt
.ControlModifier
+ Qt
.ShiftModifier
+ Qt
.Key_Backspace
60 DELETE_FILE_SECONDARY
= Qt
.ControlModifier
+ Qt
.Key_Backspace
61 PREFERENCES
= Qt
.ControlModifier
+ Qt
.Key_Comma
62 END_OF_LINE
= Qt
.Key_Dollar
65 ZOOM_OUT
= Qt
.Key_Minus
66 REMOVE_ITEM
= Qt
.Key_Minus
67 ADD_ITEM
= Qt
.Key_Plus
69 ZOOM_IN_SECONDARY
= Qt
.Key_Equal
71 QUESTION
= Qt
.Key_Question
72 RETURN
= Qt
.Key_Return
73 ACCEPT
= (ENTER
, RETURN
)
74 COMMIT
= Qt
.ControlModifier
+ Qt
.Key_Return
75 PRIMARY_ACTION
= Qt
.Key_Space
76 SECONDARY_ACTION
= Qt
.ShiftModifier
+ Qt
.Key_Space
77 LEAVE
= Qt
.ShiftModifier
+ Qt
.Key_Tab
81 REBASE_PICK
= (Qt
.Key_1
, Qt
.Key_P
)
82 REBASE_REWORD
= (Qt
.Key_2
, Qt
.Key_R
)
83 REBASE_EDIT
= (Qt
.Key_3
, Qt
.Key_E
)
84 REBASE_FIXUP
= (Qt
.Key_4
, Qt
.Key_F
)
85 REBASE_SQUASH
= (Qt
.Key_5
, Qt
.Key_S
)
88 COPY
= QKeySequence
.Copy
89 CLOSE
= QKeySequence
.Close
90 CUT
= QKeySequence
.Cut
91 DELETE
= QKeySequence
.Delete
92 NEW
= QKeySequence
.New
93 OPEN
= QKeySequence
.Open