Skip to content
Myr

fix: add no-modifiers fallbacks

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Close #4776

authored by Tymoteusz Makowski · committed by Junegunn Choi · parent 06e7057 · Browse files · 1 file+7 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+7 added−0 removed

  • other:+7 added−0 removed

1 file+7 added−0 removed

modified:src/tui/light.go+7 added
687 unmodified lines
688 *sz = 6689 switch r.buffer[4] {690 case '1', '2', '3', '4', '5', '6', '7', '8', '9':691 // Kitty iTerm2 WezTerm692 // ARROW "\e[1;1D"693 // SHIFT-ARROW "\e[1;2D"694 // ALT-SHIFT-ARROW "\e[1;4D" "\e[1;10D" "\e[1;4D"695 // CTRL-SHIFT-ARROW "\e[1;6D" N/A696 // CMD-SHIFT-ARROW "\e[1;10D" N/A N/A ("\e[1;2D")
46 unmodified lines
743 }744 if shift {745 return Event{ShiftUp, 0, nil}746 }747 return Event{Up, 0, nil}748 case 'B':749 if ctrlAltShift {750 return Event{CtrlAltShiftDown, 0, nil}751 }
14 unmodified lines
766 }767 if shift {768 return Event{ShiftDown, 0, nil}769 }770 return Event{Down, 0, nil}771 case 'C':772 if ctrlAltShift {773 return Event{CtrlAltShiftRight, 0, nil}774 }
14 unmodified lines
789 }790 if alt {791 return Event{AltRight, 0, nil}792 }793 return Event{Right, 0, nil}794 case 'D':795 if ctrlAltShift {796 return Event{CtrlAltShiftLeft, 0, nil}797 }
14 unmodified lines
812 }813 if shift {814 return Event{ShiftLeft, 0, nil}815 }816 return Event{Left, 0, nil}817 case 'H':818 if ctrlAltShift {819 return Event{CtrlAltShiftHome, 0, nil}820 }
14 unmodified lines
835 }836 if shift {837 return Event{ShiftHome, 0, nil}838 }839 return Event{Home, 0, nil}840 case 'F':841 if ctrlAltShift {842 return Event{CtrlAltShiftEnd, 0, nil}843 }
14 unmodified lines
858 }859 if shift {860 return Event{ShiftEnd, 0, nil}861 }862 return Event{End, 0, nil}863 }864 } // r.buffer[4]865 } // r.buffer[3]866 } // r.buffer[2]
678 unmodified lines