From 20ebffaee281e9146e6f07562e329e3ffe52f4e7 Mon Sep 17 00:00:00 2001 From: "tatiana.novikova" <tatiana.novikova@demlabs.net> Date: Wed, 5 Feb 2020 23:05:34 +0300 Subject: [PATCH] [*] Change first history command on pressed keyUp --- .../screen/desktop/Console/DapConsoleScreen.qml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/CellFrameDashboardGUI/screen/desktop/Console/DapConsoleScreen.qml b/CellFrameDashboardGUI/screen/desktop/Console/DapConsoleScreen.qml index c62d0bc1d..b067944a4 100644 --- a/CellFrameDashboardGUI/screen/desktop/Console/DapConsoleScreen.qml +++ b/CellFrameDashboardGUI/screen/desktop/Console/DapConsoleScreen.qml @@ -75,19 +75,20 @@ DapConsoleScreenForm if(sendedCommand != "") { sendCommand = sendedCommand; - consoleHistoryIndex = modelConsoleCommand.count; + consoleHistoryIndex = modelConsoleCommand.count + 1; runCommand(sendCommand) sendedCommand = ""; currentCommand = sendedCommand; } + } //Send command fron right history panel onHistoryCommandChanged: { - sendCommand = historyCommand; - runCommand(sendCommand) - consoleHistoryIndex = modelConsoleCommand.count; + sendCommand = historyCommand; + runCommand(sendCommand) + consoleHistoryIndex = modelConsoleCommand.count + 1; } //Using KeyUp and KeyDown to serf on console history @@ -97,7 +98,7 @@ DapConsoleScreenForm { if(consoleHistoryIndex >= modelConsoleCommand.count) { - consoleHistoryIndex = modelConsoleCommand.count; + consoleHistoryIndex = modelConsoleCommand.count + 1; currentCommand = ""; return; } -- GitLab