Swap ControlShiftUp & ControlShiftDown escape codes. Fix sandbox example. (#549)

This commit is contained in:
darrenburns
2022-05-27 16:23:01 +01:00
committed by GitHub
parent 73857e88f0
commit aa4caf7857
2 changed files with 3 additions and 3 deletions

View File

@@ -38,7 +38,7 @@ class FileTable(Widget):
def get_content_height(self, container: Size, viewport: Size, width: int) -> int:
return len(self.filtered_files)
def render(self, style: Style) -> RenderableType:
def render(self) -> RenderableType:
grid = Table.grid()
grid.add_column()
for file in self.filtered_files:

View File

@@ -230,8 +230,8 @@ ANSI_SEQUENCES_KEYS: Mapping[str, Tuple[Keys, ...]] = {
"\x1bOc": (Keys.ControlRight,), # rxvt
"\x1bOd": (Keys.ControlLeft,), # rxvt
# Control + shift + arrows.
"\x1b[1;6A": (Keys.ControlShiftDown,),
"\x1b[1;6B": (Keys.ControlShiftUp,),
"\x1b[1;6A": (Keys.ControlShiftUp,),
"\x1b[1;6B": (Keys.ControlShiftDown,),
"\x1b[1;6C": (Keys.ControlShiftRight,),
"\x1b[1;6D": (Keys.ControlShiftLeft,),
"\x1b[1;6F": (Keys.ControlShiftEnd,),