mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-16 17:46:45 +00:00
fix(editor): Fix RAG Callout keyboard navigation in nodes search (#17099)
This commit is contained in:
@@ -277,6 +277,7 @@ function arrowLeft() {
|
||||
|
||||
function onKeySelect(activeItemId: string) {
|
||||
const mergedItems = flattenCreateElements([
|
||||
...(globalCallouts.value ?? []),
|
||||
...(activeViewStack.value.items ?? []),
|
||||
...(globalSearchItemsDiff.value ?? []),
|
||||
...(moreFromCommunity.value ?? []),
|
||||
@@ -290,13 +291,13 @@ function onKeySelect(activeItemId: string) {
|
||||
|
||||
registerKeyHook('MainViewArrowRight', {
|
||||
keyboardKeys: ['ArrowRight', 'Enter'],
|
||||
condition: (type) => ['subcategory', 'node', 'link', 'view'].includes(type),
|
||||
condition: (type) => ['subcategory', 'node', 'link', 'view', 'openTemplate'].includes(type),
|
||||
handler: onKeySelect,
|
||||
});
|
||||
|
||||
registerKeyHook('MainViewArrowLeft', {
|
||||
keyboardKeys: ['ArrowLeft'],
|
||||
condition: (type) => ['subcategory', 'node', 'link', 'view'].includes(type),
|
||||
condition: (type) => ['subcategory', 'node', 'link', 'view', 'openTemplate'].includes(type),
|
||||
handler: arrowLeft,
|
||||
});
|
||||
</script>
|
||||
|
||||
@@ -314,6 +314,7 @@ export function getRootSearchCallouts(search: string, { isRagStarterCalloutVisib
|
||||
const ragKeywords = ['rag', 'vec', 'know'];
|
||||
if (isRagStarterCalloutVisible && ragKeywords.some((x) => search.toLowerCase().startsWith(x))) {
|
||||
results.push({
|
||||
uuid: 'rag-starter-template',
|
||||
key: 'rag-starter-template',
|
||||
type: 'openTemplate',
|
||||
properties: {
|
||||
|
||||
Reference in New Issue
Block a user