serenity/Ladybird/LocationEdit.cpp
Cameron Youell b97f9f5809 Ladybird: Make LocationEdit its own class
Also make return key behave more like other browsers when editing
2023-01-22 21:15:22 -07:00

17 lines
309 B
C++

/*
* Copyright (c) 2023, Cameron Youell <cameronyouell@gmail.com>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include "LocationEdit.h"
#include "Tab.h"
LocationEdit::LocationEdit(Tab* tab)
: QLineEdit(tab)
{
connect(this, &QLineEdit::returnPressed, this, [&] {
clearFocus();
});
}