| skipped 83 lines |
84 | 84 | | |
85 | 85 | | # Define the key combination for the shortcut |
86 | 86 | | |
87 | | - | keyStroke = KeyStroke.getKeyStroke(KeyEvent.VK_R, Toolkit.getDefaultToolkit().getMenuShortcutKeyMaskEx()) |
88 | | - | keyStroke1 = KeyStroke.getKeyStroke(KeyEvent.VK_C, InputEvent.META_DOWN_MASK) |
| 87 | + | # The keystroke combo is: Mac -> Command + r / Windows control + r |
| 88 | + | # This is used to send to the repeater function in burp |
| 89 | + | controlR = KeyStroke.getKeyStroke(KeyEvent.VK_R, Toolkit.getDefaultToolkit().getMenuShortcutKeyMaskEx()) |
| 90 | + | |
| 91 | + | # The keystroke combo is: Mac -> Command + c / Windows control + c |
| 92 | + | # This is used to copy the URL to the keyboard. |
| 93 | + | controlC = KeyStroke.getKeyStroke(KeyEvent.VK_C, InputEvent.META_DOWN_MASK) |
89 | 94 | | |
90 | 95 | | # Get the input and action maps for the JTable |
91 | 96 | | inputMap = self._extender.logTable.getInputMap(JTable.WHEN_FOCUSED) |
92 | 97 | | actionMap = self._extender.logTable.getActionMap() |
93 | 98 | | |
94 | 99 | | # Bind the key combination to the action |
95 | | - | inputMap.put(keyStroke, "myShortcutAction") |
96 | | - | actionMap.put("myShortcutAction", SendModifiedRequestToRepeaterAction(self._extender, self._extender._callbacks)) |
| 100 | + | inputMap.put(controlR, "SendRequestToRepeaterAction") |
| 101 | + | actionMap.put("SendRequestToRepeaterAction", SendRequestToRepeaterAction(self._extender, self._extender._callbacks)) |
97 | 102 | | |
98 | 103 | | # Bind the key combination to the action |
99 | | - | inputMap.put(keyStroke1, "copyToClipBoard") |
| 104 | + | inputMap.put(controlC, "copyToClipBoard") |
100 | 105 | | actionMap.put("copyToClipBoard", |
101 | 106 | | CopySelectedURLToClipBoard(self._extender, self._extender._callbacks)) |
102 | 107 | | |
| skipped 159 lines |
262 | 267 | | else: |
263 | 268 | | collapse(self._extender, evt.getComponent()) |
264 | 269 | | |
265 | | - | class SendModifiedRequestToRepeaterAction(AbstractAction): |
| 270 | + | class SendRequestToRepeaterAction(AbstractAction): |
266 | 271 | | def __init__(self, extender, callbacks): |
267 | 272 | | self._extender = extender |
268 | 273 | | self._callbacks = callbacks |
| skipped 28 lines |