|
43 | 43 | def add_commands(plugin): |
44 | 44 | DbgAction = namedtuple('DbgAction', 'name, key_seq, handler') |
45 | 45 | plugin_actions = ( |
46 | | - DbgAction("SyncEnable", QKeySequence(Qt.ALT + Qt.Key_S), UIAction(plugin.cmd_sync)), |
47 | | - DbgAction("SyncDisable", QKeySequence(Qt.ALT + Qt.SHIFT + Qt.Key_S), UIAction(plugin.cmd_syncoff)), |
48 | | - DbgAction("SyncGo", QKeySequence(Qt.ALT + Qt.Key_F5), UIAction(plugin.cmd_go)), |
| 46 | + DbgAction("SyncEnable", QKeySequence(Qt.ALT | Qt.Key_S), UIAction(plugin.cmd_sync)), |
| 47 | + DbgAction("SyncDisable", QKeySequence(Qt.ALT | Qt.SHIFT | Qt.Key_S), UIAction(plugin.cmd_syncoff)), |
| 48 | + DbgAction("SyncGo", QKeySequence(Qt.ALT | Qt.Key_F5), UIAction(plugin.cmd_go)), |
49 | 49 | DbgAction("SyncStepOver", QKeySequence(Qt.Key_F10), UIAction(plugin.cmd_so)), |
50 | 50 | DbgAction("SyncStepInto", QKeySequence(Qt.Key_F11), UIAction(plugin.cmd_si)), |
51 | | - DbgAction("SyncTranslate", QKeySequence(Qt.ALT + Qt.Key_F2), UIAction(plugin.cmd_translate)), |
| 51 | + DbgAction("SyncTranslate", QKeySequence(Qt.ALT | Qt.Key_F2), UIAction(plugin.cmd_translate)), |
52 | 52 | DbgAction("SyncBp", QKeySequence(Qt.Key_F2), UIAction(plugin.cmd_bp)), |
53 | | - DbgAction("SyncHwBp", QKeySequence(Qt.CTRL + Qt.Key_F2), UIAction(plugin.cmd_hwbp)), |
54 | | - DbgAction("SyncBpOneShot", QKeySequence(Qt.ALT + Qt.Key_F3), UIAction(plugin.cmd_bp1)), |
55 | | - DbgAction("SyncHwBpOneShot", QKeySequence(Qt.CTRL + Qt.Key_F3), UIAction(plugin.cmd_hwbp1)) |
| 53 | + DbgAction("SyncHwBp", QKeySequence(Qt.CTRL | Qt.Key_F2), UIAction(plugin.cmd_hwbp)), |
| 54 | + DbgAction("SyncBpOneShot", QKeySequence(Qt.ALT | Qt.Key_F3), UIAction(plugin.cmd_bp1)), |
| 55 | + DbgAction("SyncHwBpOneShot", QKeySequence(Qt.CTRL | Qt.Key_F3), UIAction(plugin.cmd_hwbp1)) |
56 | 56 | ) |
57 | 57 |
|
58 | 58 | for action in plugin_actions: |
|
0 commit comments