mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 01:07:36 +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
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