From 28dbac4a355c201572dfc6f08e8b8f1579468d1c Mon Sep 17 00:00:00 2001 From: Krzosa Karol Date: Sun, 4 Aug 2024 10:15:09 +0200 Subject: [PATCH] Ctrl + Q Alt + Q --- src/text_editor/commands_window.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/text_editor/commands_window.cpp b/src/text_editor/commands_window.cpp index fcc88b1..91309af 100644 --- a/src/text_editor/commands_window.cpp +++ b/src/text_editor/commands_window.cpp @@ -850,6 +850,16 @@ void WindowCommand(Event event, Window *window, View *view) { GoBackToLastCrumb(); } + if (Ctrl(SDLK_Q)) { + Int p = GetFront(view->carets[0]); + Range enclose = EncloseLoadWord(buffer, p); + String16 string = GetString(*buffer, enclose); + Open(string); + } + if (Alt(SDLK_Q)) { + GoBackToLastCrumb(); + } + { Vec2I mouse = MouseVec2I();