diff options
author | Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> | 2022-07-23 10:00:50 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-23 10:00:50 +0800 |
commit | e6c5a7705ebd99f4d190478e74bdf32f303dae01 (patch) | |
tree | db139ad419a31c73e7fa6327fd1f8b34afd8ac95 | |
parent | 218d91e91db6df30b28764d64d59ffbe709ce538 (diff) | |
parent | 9c44e8d6ccdfaf3b34da956ad3a104c6b7ba2718 (diff) | |
download | SoopyV2-e6c5a7705ebd99f4d190478e74bdf32f303dae01.tar.gz SoopyV2-e6c5a7705ebd99f4d190478e74bdf32f303dae01.tar.bz2 SoopyV2-e6c5a7705ebd99f4d190478e74bdf32f303dae01.zip |
Merge pull request #34 from EmeraldMerchant/patch-35
+ tab completions
-rw-r--r-- | featureClass/featureManager.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/featureClass/featureManager.js b/featureClass/featureManager.js index f39d762..92212be 100644 --- a/featureClass/featureManager.js +++ b/featureClass/featureManager.js @@ -536,11 +536,13 @@ class FeatureManager { return event } - registerCommand(commandName, func, context) { + registerCommand(commandName, func, context, completions) { let event = this.registerCustom("command", func, context) event.trigger.setName(commandName, true) + + if (completions) event.trigger.setName(commandName, true).setTabCompletions(completions) return event } |