mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-23 01:41:59 -05:00
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;
|
|
};
|
|
|
|
}
|