1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 14:37:46 +00:00

Ladybird: Make LocationEdit its own class

Also make return key behave more like other browsers when editing
This commit is contained in:
Cameron Youell 2023-01-19 01:12:13 +11:00 committed by Andrew Kaster
parent 926e61dec6
commit b97f9f5809
5 changed files with 39 additions and 2 deletions

16
Ladybird/LocationEdit.cpp Normal file
View file

@ -0,0 +1,16 @@
/*
* 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();
});
}