File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 ( )
You can’t perform that action at this time.
0 commit comments