mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 09:12:45 +00:00 
			
		
		
		
	 b983dc8807
			
		
	
	
		b983dc8807
		
	
	
	
	
		
			
			The user can now navigate to the previous and next image using the left and right arrow keys respectively. These shortcuts were previously not working.
		
			
				
	
	
		
			25 lines
		
	
	
	
		
			431 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			25 lines
		
	
	
	
		
			431 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| /*
 | |
|  * Copyright (c) 2023, Tim Ledbetter <timledbetter@gmail.com>
 | |
|  *
 | |
|  * SPDX-License-Identifier: BSD-2-Clause
 | |
|  */
 | |
| 
 | |
| #pragma once
 | |
| 
 | |
| #include <LibGUI/BoxLayout.h>
 | |
| #include <LibGUI/Widget.h>
 | |
| 
 | |
| namespace ImageViewer {
 | |
| 
 | |
| class MainWidget final : public GUI::Widget {
 | |
|     C_OBJECT(MainWidget)
 | |
| 
 | |
| public:
 | |
|     virtual ~MainWidget() override = default;
 | |
| 
 | |
| private:
 | |
|     MainWidget();
 | |
|     virtual void keydown_event(GUI::KeyEvent& event) final;
 | |
| };
 | |
| 
 | |
| }
 |