MCPcopy
hub / github.com/docker/docker-agent / reapplyKeyboardEnhancements

Method reapplyKeyboardEnhancements

pkg/tui/tui.go:504–510  ·  view source on GitHub ↗

reapplyKeyboardEnhancements forwards the cached keyboard enhancements message to the active chat page and editor so new/replaced instances pick up the terminal's key disambiguation support.

()

Source from the content-addressed store, hash-verified

502// to the active chat page and editor so new/replaced instances pick up the
503// terminal's key disambiguation support.
504func (m *appModel) reapplyKeyboardEnhancements() {
505 if m.keyboardEnhancements == nil {
506 return
507 }
508 _ = m.updateChatCmd(*m.keyboardEnhancements)
509 _ = m.updateEditorCmd(*m.keyboardEnhancements)
510}
511
512func (m *appModel) commandCategories() []commands.Category {
513 categories := m.buildCommandCategories(m.ctx(), m)

Callers 4

handleBranchFromEditMethod · 0.95
handleClearSessionMethod · 0.95
handleSwitchTabMethod · 0.95

Calls 2

updateChatCmdMethod · 0.95
updateEditorCmdMethod · 0.95

Tested by

no test coverage detected