diff --git a/package.json b/package.json index 5fd05b8a..f3bdc8d5 100644 --- a/package.json +++ b/package.json @@ -368,7 +368,8 @@ { "command": "powerPlatform.previewCurrentActiveUsers", "title": "Current Active Users", - "icon": "$(person)" + "icon": "$(person)", + "when": "isWeb && virtualWorkspace" }, { "command": "microsoft.powerplatform.pages.preview-site", @@ -662,12 +663,10 @@ { "when": "resourceLangId == html && !virtualWorkspace", "command": "microsoft-powerapps-portals.preview-show", - "alt": "microsoft-powerapps-portals.preview-show", "group": "navigation" }, { "command": "powerPlatform.previewCurrentActiveUsers", - "alt": "current active users", "group": "navigation", "when": "isWeb && virtualWorkspace" } @@ -820,6 +819,10 @@ { "command": "microsoft.powerplatform.pages.preview-site", "when": "microsoft.powerplatform.pages.siteRuntimePreviewEnabled && workspaceFolderCount == 1 && !isWeb" + }, + { + "command": "powerPlatform.previewCurrentActiveUsers", + "when": "isWeb && virtualWorkspace" } ], "view/title": [ diff --git a/src/common/copilot/assets/scripts/copilot.js b/src/common/copilot/assets/scripts/copilot.js index 813e39c7..328119ef 100644 --- a/src/common/copilot/assets/scripts/copilot.js +++ b/src/common/copilot/assets/scripts/copilot.js @@ -220,20 +220,20 @@ return feedback; } feedback.innerHTML = `

${copilotStrings.AI_CONTENT_MISTAKES_MESSAGE}

-
- - ${copilotStrings.THUMBS_UP_MESSAGE} - - - - - - ${copilotStrings.THUMBS_DOWN_MESSAGE} - - - -
-`; +
+ + ${copilotStrings.THUMBS_UP_MESSAGE} + + + + + + ${copilotStrings.THUMBS_DOWN_MESSAGE} + + + +
+ `; feedback.classList.add("feedback-div"); @@ -593,6 +593,7 @@ }); chatMessages.addEventListener("click", handleFeedbackClick); + chatMessages.addEventListener("keydown", handleFeedbackKeydown); function handleFeedbackClick(event) { const target = event.target; @@ -606,6 +607,20 @@ } } + function handleFeedbackKeydown(event) { + const target = event.target; + + if ((event.key === "Enter" || event.key === " ") && target.classList.contains("thumbsup")) { + event.preventDefault(); + handleThumbsUpClick(target); + } + + if ((event.key === "Enter" || event.key === " ") && target.classList.contains("thumbsdown")) { + event.preventDefault(); + handleThumbsDownClick(target); + } + } + function handleThumbsUpClick(element) { if (element.classList.contains("thumbsup-clicked")) {