mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-13 04:52:23 +00:00
Browser: Add console history to re-send old commands
The console has now enabled history in its input text box. Pretty nice to not have to retype things all the time :^)
This commit is contained in:
parent
139dbfd5b5
commit
08e2907210
Notes:
sideshowbarker
2024-07-19 06:03:55 +09:00
Author: https://github.com/FalseHonesty
Commit: 08e2907210
Pull-request: https://github.com/SerenityOS/serenity/pull/2412
Reviewed-by: https://github.com/awesomekling
2 changed files with 24 additions and 20 deletions
|
@ -26,6 +26,7 @@
|
|||
#pragma once
|
||||
|
||||
#include "BrowserConsoleClient.h"
|
||||
#include "History.h"
|
||||
#include <LibGUI/Widget.h>
|
||||
#include <LibJS/Forward.h>
|
||||
#include <LibWeb/HtmlView.h>
|
||||
|
@ -45,9 +46,9 @@ public:
|
|||
private:
|
||||
ConsoleWidget();
|
||||
|
||||
RefPtr<GUI::TextBox> m_console_input;
|
||||
RefPtr<Web::HtmlView> m_console_output_view;
|
||||
RefPtr<Web::Element> m_console_output_container;
|
||||
RefPtr<GUI::TextBox> m_input;
|
||||
RefPtr<Web::HtmlView> m_output_view;
|
||||
RefPtr<Web::Element> m_output_container;
|
||||
WeakPtr<JS::Interpreter> m_interpreter;
|
||||
OwnPtr<BrowserConsoleClient> m_console_client;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue