mirror of
https://github.com/RGBCube/serenity
synced 2025-05-16 19:15:07 +00:00

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.
23 lines
388 B
C++
23 lines
388 B
C++
/*
|
|
* Copyright (c) 2023, Tim Ledbetter <timledbetter@gmail.com>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#include "MainWidget.h"
|
|
|
|
namespace ImageViewer {
|
|
|
|
MainWidget::MainWidget()
|
|
{
|
|
set_fill_with_background_color(true);
|
|
set_layout<GUI::VerticalBoxLayout>();
|
|
layout()->set_spacing(2);
|
|
}
|
|
|
|
void MainWidget::keydown_event(GUI::KeyEvent& event)
|
|
{
|
|
event.ignore();
|
|
}
|
|
|
|
}
|