serenity/Userland/Applications/ImageViewer/MainWidget.h
Tim Ledbetter b983dc8807 ImageViewer: Make arrow key shortcuts work
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.
2023-02-16 12:26:41 +00:00

26 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;
};
}