mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-08 12:19:37 +03:00
b97f9f5809
Also make return key behave more like other browsers when editing
17 lines
309 B
C++
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();
|
|
});
|
|
}
|