mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-01 07:35:02 +03: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.
26 lines
431 B
C++
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;
|
|
};
|
|
|
|
}
|