File tree Expand file tree Collapse file tree 1 file changed +20
-2
lines changed
Expand file tree Collapse file tree 1 file changed +20
-2
lines changed Original file line number Diff line number Diff line change @@ -115,10 +115,28 @@ impl App {
115115 Focus :: Jobs => self . select_next_job ( ) ,
116116 } ,
117117 KeyCode :: PageDown => {
118- self . job_stdout_offset = self . job_stdout_offset . saturating_sub ( 1 )
118+ self . job_stdout_offset = self . job_stdout_offset . saturating_sub (
119+ if key
120+ . modifiers
121+ . contains ( crossterm:: event:: KeyModifiers :: CONTROL )
122+ {
123+ 10
124+ } else {
125+ 1
126+ } ,
127+ )
119128 }
120129 KeyCode :: PageUp => {
121- self . job_stdout_offset = self . job_stdout_offset . saturating_add ( 1 )
130+ self . job_stdout_offset = self . job_stdout_offset . saturating_add (
131+ if key
132+ . modifiers
133+ . contains ( crossterm:: event:: KeyModifiers :: CONTROL )
134+ {
135+ 10
136+ } else {
137+ 1
138+ } ,
139+ )
122140 }
123141 _ => { }
124142 } ;
You can’t perform that action at this time.
0 commit comments