You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| execCmd | Fired when a custom command is executed. `success` and `failed` are callback functions, **must call one of the two callbacks before echoing!**, the meaning of the `success` callback parameter is described below, and the `failed` callback parameter is a string. |`(cmdKey, command, success, failed, name)`|
147
-
| beforeExecCmd | Triggered before the user presses Enter to execute the command. |`(cmdKey, command, name)`|
148
-
| onKeydown | When the cursor focus is obtained, press any keyboard to trigger. |`(event, name)`|
149
-
| onClick | Triggered when the user clicks the button, the parameter `key` is the unique identification of the button, there are buttons: `close`, `minScreen`, `fullScreen`, `title`. |`(key, name)`|
150
-
| initBefore | Lifecycle function, triggered before plugin initialization. |`(name)`|
151
-
| initComplete | Lifecycle function, triggered after plugin initialization is complete. |`(name)`|
| execCmd | Fired when a custom command is executed. `success` and `failed` are callback functions, **must call one of the two callbacks before echoing!**, the meaning of the `success` callback parameter is described below, and the `failed` callback parameter is a string. |`(cmdKey, command, success, failed, name)`|
148
+
| beforeExecCmd | Triggered before the user presses Enter to execute the command. |`(cmdKey, command, name)`|
149
+
| onKeydown | When the cursor focus is obtained, press any keyboard to trigger. |`(event, name)`|
150
+
| onClick | Triggered when the user clicks the button, the parameter `key` is the unique identification of the button, there are buttons: `close`, `minScreen`, `fullScreen`, `title`. |`(key, name)`|
151
+
| initBefore | Lifecycle function, triggered before plugin initialization. |`(name)`|
152
+
| initComplete | Lifecycle function, triggered after plugin initialization is complete. |`(name)`|
153
+
| tabKeyHandler | The logic processing method when the user types the Tab key can be used in conjunction with the `helpCmd` slot. |`(event)`|
152
154
153
155
**Special note**: The `success` callback parameter of `execCmd` supports multiple data types, and the execution logic of different data types will be different:
154
156
@@ -172,6 +174,7 @@ Terminal supports the following custom slots, this feature is supported in `2.0.
0 commit comments