From 0373c1d7a4d6240e0ed81efaae9a477103d5b3b8 Mon Sep 17 00:00:00 2001 From: Christian Date: Sun, 1 Feb 2026 00:25:02 +0100 Subject: [PATCH] feat(tag-picker): Enhance keyboard shortcut context handling and logging --- app/modules/hardware/templates/detail.html | 5 +++ app/modules/sag/templates/detail.html | 6 +++- app/modules/sag/templates/index.html | 2 +- app/shared/frontend/base.html | 2 +- static/js/tag-picker.js | 38 ++++++++++++++++++++-- 5 files changed, 47 insertions(+), 6 deletions(-) diff --git a/app/modules/hardware/templates/detail.html b/app/modules/hardware/templates/detail.html index 471f029..4d8e7d8 100644 --- a/app/modules/hardware/templates/detail.html +++ b/app/modules/hardware/templates/detail.html @@ -728,6 +728,11 @@ if (window.renderEntityTags) { window.renderEntityTags('hardware', {{ hardware.id }}, 'hardware-tags'); } + + // Set default context for keyboard shortcuts (Option+Shift+T) + if (window.setTagPickerContext) { + window.setTagPickerContext('hardware', {{ hardware.id }}, () => window.renderEntityTags('hardware', {{ hardware.id }}, 'hardware-tags')); + } }); {% endblock %} \ No newline at end of file diff --git a/app/modules/sag/templates/detail.html b/app/modules/sag/templates/detail.html index 7c88c50..e016d05 100644 --- a/app/modules/sag/templates/detail.html +++ b/app/modules/sag/templates/detail.html @@ -450,7 +450,6 @@ - - +