diff --git a/CellFrameDashboardGUI/screen/desktop/Console/DapConsoleScreen.qml b/CellFrameDashboardGUI/screen/desktop/Console/DapConsoleScreen.qml index c62d0bc1dbe8445d1716ef72b425b331285996b6..b067944a47033fa915b057cc997315a517141d16 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; }