Add C-n and C-p
This commit is contained in:
		
							parent
							
								
									02ca8e972b
								
							
						
					
					
						commit
						26eefa35c9
					
				| @ -242,6 +242,10 @@ Complete nick, channel or command. | |||||||
| .Bl -tag -width Ds -compact | .Bl -tag -width Ds -compact | ||||||
| .It Ic C-l | .It Ic C-l | ||||||
| Redraw the UI. | Redraw the UI. | ||||||
|  | .It Ic C-n | ||||||
|  | Switch to next window. | ||||||
|  | .It Ic C-p | ||||||
|  | Switch to previous window. | ||||||
| .It Ic M-m | .It Ic M-m | ||||||
| Insert a blank line in the window. | Insert a blank line in the window. | ||||||
| .It Ic M- Ns Ar n | .It Ic M- Ns Ar n | ||||||
|  | |||||||
							
								
								
									
										3
									
								
								ui.c
									
									
									
									
									
								
							
							
						
						
									
										3
									
								
								ui.c
									
									
									
									
									
								
							| @ -565,6 +565,7 @@ static void inputUpdate(void) { | |||||||
| } | } | ||||||
| 
 | 
 | ||||||
| static void windowShow(struct Window *window) { | static void windowShow(struct Window *window) { | ||||||
|  | 	if (!window) return; | ||||||
| 	touchwin(window->pad); | 	touchwin(window->pad); | ||||||
| 	windows.other = windows.active; | 	windows.other = windows.active; | ||||||
| 	windows.active = window; | 	windows.active = window; | ||||||
| @ -662,6 +663,8 @@ static void keyCtrl(wchar_t ch) { | |||||||
| 		break; case L'J': edit(id, EditEnter, 0); | 		break; case L'J': edit(id, EditEnter, 0); | ||||||
| 		break; case L'K': edit(id, EditDeleteTail, 0); | 		break; case L'K': edit(id, EditDeleteTail, 0); | ||||||
| 		break; case L'L': clearok(curscr, true); | 		break; case L'L': clearok(curscr, true); | ||||||
|  | 		break; case L'N': windowShow(windows.active->next); | ||||||
|  | 		break; case L'P': windowShow(windows.active->prev); | ||||||
| 		break; case L'U': edit(id, EditDeleteHead, 0); | 		break; case L'U': edit(id, EditDeleteHead, 0); | ||||||
| 		break; case L'W': edit(id, EditDeletePrevWord, 0); | 		break; case L'W': edit(id, EditDeletePrevWord, 0); | ||||||
| 		break; case L'Y': edit(id, EditPaste, 0); | 		break; case L'Y': edit(id, EditPaste, 0); | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user