cmds: add SetDefaultRepo command
[git-cola.git] / cola / hotkeys.py
blob1386fc3e496ddfd653fa0d42d44d149e40c82fa1
1 from PyQt4.QtGui import QKeySequence
2 from PyQt4.QtCore import Qt
4 # A-G
5 STAGE_MODIFIED = Qt.AltModifier + Qt.Key_A
6 WORD_LEFT = Qt.Key_B
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
16 FIT = Qt.Key_F
17 FETCH = Qt.ControlModifier + Qt.Key_F
18 FILTER = Qt.ControlModifier + Qt.ShiftModifier + Qt.Key_F
19 GREP = Qt.ControlModifier + Qt.Key_G
20 # H-P
21 MOVE_LEFT = Qt.Key_H
22 HISTORY = Qt.ControlModifier + Qt.ShiftModifier + Qt.Key_H
23 SIGNOFF = Qt.ControlModifier + Qt.Key_I
24 MOVE_DOWN = Qt.Key_J
25 MOVE_DOWN_SECONDARY = Qt.AltModifier + Qt.Key_J
26 MOVE_DOWN_TERTIARY = Qt.ShiftModifier + Qt.Key_J
27 MOVE_UP = Qt.Key_K
28 MOVE_UP_SECONDARY = Qt.AltModifier + Qt.Key_K
29 MOVE_UP_TERTIARY = Qt.ShiftModifier + Qt.Key_K
30 MOVE_RIGHT = Qt.Key_L
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
37 # Q-Z
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)
42 STAGE_DIFF = Qt.Key_S
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
50 WORD_RIGHT = Qt.Key_W
51 UNDO = Qt.ControlModifier + Qt.Key_Z
53 # Numbers
54 START_OF_LINE = Qt.Key_0
56 # Special keys
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
63 DOWN = Qt.Key_Down
64 ENTER = Qt.Key_Enter
65 ZOOM_OUT = Qt.Key_Minus
66 REMOVE_ITEM = Qt.Key_Minus
67 ADD_ITEM = Qt.Key_Plus
68 ZOOM_IN = 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
78 UP = Qt.Key_Up
80 # Rebase
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)
87 # Key Sequences
88 COPY = QKeySequence.Copy
89 CLOSE = QKeySequence.Close
90 CUT = QKeySequence.Cut
91 DELETE = QKeySequence.Delete
92 NEW = QKeySequence.New
93 OPEN = QKeySequence.Open