mirror of
https://github.com/wassname/chatGPTBox.git
synced 2026-08-11 11:16:18 +08:00
feat: add entry for Independent Panel and Keyboard Shortcuts
This commit is contained in:
@@ -241,7 +241,9 @@ async function prepareForRightClickMenu() {
|
||||
if (data.itemId in toolsConfig) {
|
||||
prompt = await toolsConfig[data.itemId].genPrompt(data.selectionText)
|
||||
} else if (data.itemId in menuConfig) {
|
||||
prompt = await menuConfig[data.itemId].genPrompt()
|
||||
const menuItem = menuConfig[data.itemId]
|
||||
if (!menuItem.genPrompt) return
|
||||
else prompt = await menuItem.genPrompt()
|
||||
if (prompt) prompt = cropText(`Reply in ${await getPreferredLanguage()}.\n` + prompt)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user