Outside tmux I use ctrl-k to erase the line in my terminal with zsh from the cursor to end of line. When I'm in tmux it doesn't work. Below is my tmux.conf:
set-option -g prefix C-a
# From: https://wiki.archlinux.org/title/Tmux
set -g set-titles on
set -g set-titles-string "#T"
set -g status-right '%Y%m%d | %H:%M '
setw -g mode-keys vi
bind C-a last-window
bind | split-window -h
bind - split-window -v
bind m command-prompt -p "join pane from:" "join-pane -s '%%'"
#bind s command-prompt -p "send pane to:" "join-pane -t '%%'"
bind s choose-session
bind a send-prefix
# Make tmux forward-word and backward-word with CTRL+arrow
# See http://stackoverflow.com/a/15988701/1679629
set-window-option -g xterm-keys on
What is going on and how to fix that?
tmuxunderbash, the C-k shortcut works as it always does under a non-tmux shell prompt. Not sure why it doesn't work for you underzsh.bindkey "^K"in your question, too.