Skip to content

Commit 8171174

Browse files
committed
Merge branch 'feature/commnad-l-to-focus' into develop
2 parents 34e6cee + 2f0be3f commit 8171174

2 files changed

Lines changed: 10 additions & 1 deletion

File tree

Core/Sources/ChatGPTChatTab/ChatPanel.swift

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -398,6 +398,13 @@ struct ChatPanelInputArea: View {
398398
EmptyView()
399399
}
400400
.keyboardShortcut(KeyEquivalent.return, modifiers: [.shift])
401+
402+
Button(action: {
403+
isInputAreaFocused = true
404+
}) {
405+
EmptyView()
406+
}
407+
.keyboardShortcut("l", modifiers: [.command])
401408
}
402409
}
403410

Core/Sources/SuggestionWidget/ChatWindowView.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,8 +333,10 @@ struct ChatTabContainer: View {
333333
} else {
334334
ForEach(viewStore.state.tabInfo) { tabInfo in
335335
if let tab = chatTabPool.getTab(of: tabInfo.id) {
336+
let isActive = tab.id == viewStore.state.selectedTabId
336337
tab.body
337-
.opacity(tab.id == viewStore.state.selectedTabId ? 1 : 0)
338+
.opacity(isActive ? 1 : 0)
339+
.disabled(!isActive)
338340
.frame(maxWidth: .infinity, maxHeight: .infinity)
339341
} else {
340342
EmptyView()

0 commit comments

Comments
 (0)