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:
parent
926e61dec6
commit
b97f9f5809
5 changed files with 39 additions and 2 deletions
16
Ladybird/LocationEdit.cpp
Normal file
16
Ladybird/LocationEdit.cpp
Normal 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();
|
||||
});
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue