Improve console behaviour

This commit is contained in:
Krzosa Karol
2024-08-08 17:42:03 +02:00
parent 95b7ded031
commit a5756ab2f5
4 changed files with 5 additions and 2 deletions

View File

@@ -249,7 +249,7 @@ bool GlobalCommand(Event event) {
if (event.ctrl && Mouse(RIGHT)) {
GoBackToLastCrumb();
} else if (event.alt && Mouse(RIGHT)) {
ToggleConsole();
// ToggleConsole();
}
// @todo: maybe move some of this stuff to window command ???

View File

@@ -905,7 +905,7 @@ void WindowCommand(Event event, Window *window, View *view) {
if (Ctrl(SDLK_W)) {
GoBackToLastCrumb();
} else if (Alt(SDLK_W)) {
ToggleConsole();
// ToggleConsole();
}
if (Mouse(MIDDLE)) {

View File

@@ -5,6 +5,7 @@
- prevent lua from infinite looping
- Append to console and change console directory
- hotkey to select window title
- the 'invisible when inactive' flag does it apply to title bar windows??
- search as a command to execute which is going to be in the title bar
- search backwards

View File

@@ -152,6 +152,8 @@ void InitWindows() {
WindowID window_id = window->id;
ConsoleWindowID = window_id;
window->invisible_when_inactive = true;
window->deactivate_on_escape = true;
window->absolute_position = true;
window->dont_save_in_active_window_history = true;