Skip to content

Commit d4aa2ce

Browse files
authored
Merge pull request #631 from Komzpa/darafei/split-interactive-keys
split: support more interactive keys
2 parents f71a613 + 0a3d4c2 commit d4aa2ce

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

ui/split.c

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,22 @@ int split_keyaction(
200200
return ActionQuit;
201201
if (tolower(c) == 'r')
202202
return ActionReset;
203+
if (tolower(c) == 'p')
204+
return ActionPause;
205+
if (c == ' ')
206+
return ActionResume;
207+
if (tolower(c) == 'd')
208+
return ActionDisplay;
209+
if (tolower(c) == 'c')
210+
return ActionCompact;
211+
if (tolower(c) == 'e')
212+
return ActionMPLS;
213+
if (tolower(c) == 'n')
214+
return ActionDNS;
215+
if (c == '+')
216+
return ActionScrollDown;
217+
if (c == '-')
218+
return ActionScrollUp;
203219

204220
return 0;
205221
}

0 commit comments

Comments
 (0)