Skip to content

Commit 75feec1

Browse files
committed
fix(livepreview): pin improved Ask AI composer
1 parent 4923d31 commit 75feec1

3 files changed

Lines changed: 6 additions & 4 deletions

File tree

‎src/brackets.js‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -461,8 +461,9 @@ define(function (require, exports, module) {
461461
// not steal focus. Calling preventDefault() on mousedown prevents
462462
// focus from going to the click target.
463463
$("html").on("mousedown", ".no-focus", function (e) {
464-
// Text fields should always be focusable.
465-
const $target = $(e.target),
464+
// Shadow DOM retargets e.target to its host; text fields inside it must still be focusable.
465+
const eventPath = e.originalEvent && e.originalEvent.composedPath ? e.originalEvent.composedPath() : [];
466+
const $target = $(eventPath[0] || e.target),
466467
isFormElement =
467468
$target.is("input") ||
468469
$target.is("textarea") ||

‎src/nls/root/strings.js‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3022,7 +3022,7 @@ define({
30223022
"AI_CHAT_ATTACH_FOLDER_PICK_TITLE": "Choose folder to add as context",
30233023
"LIVE_DEV_AI_CHAT_TITLE": "Ask AI",
30243024
"LIVE_DEV_AI_CHAT_SHOW": "Show Ask AI",
3025-
"LIVE_DEV_AI_CHAT_MOVE": "Drag to move · Double-click to reset · Arrow keys to move, Home to reset",
3025+
"LIVE_DEV_AI_CHAT_MOVE": "Drag to move · Double-click to reset position",
30263026
"LIVE_DEV_AI_CHAT_IMAGES": "Images and element references",
30273027
"LIVE_DEV_AI_CHAT_PICK": "Select element",
30283028
"LIVE_DEV_AI_CHAT_PICK_HINT": "Select an element to add as context",
@@ -3031,6 +3031,7 @@ define({
30313031
"LIVE_DEV_AI_CHAT_SEND": "Send to Visual AI",
30323032
"LIVE_DEV_AI_CHAT_KEYS": "Enter to send · Shift + Enter for a new line",
30333033
"LIVE_DEV_AI_CHAT_SELECTED": "Selected element",
3034+
"LIVE_DEV_AI_CHAT_ADD_SELECTED": "Add selected",
30343035
"LIVE_DEV_AI_CHAT_CURRENT": "Current element · Updated when Ask AI opens",
30353036
"LIVE_DEV_AI_CHAT_NO_SELECTION": "None selected",
30363037
"LIVE_DEV_AI_CHAT_ADD": "Add screenshot and element reference: {0}",

‎tracking-repos.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"phoenixPro": {
3-
"commitID": "ad52b10b4d23b605f13fafca84f84390e664c7ad"
3+
"commitID": "0aa88ca543e1cbd329c57eac7a77b08a6b7d0e2b"
44
}
55
}

0 commit comments

Comments
 (0)