From 949d96a6762fc2db25a4d345520abdc9296af11b Mon Sep 17 00:00:00 2001 From: whywilson Date: Fri, 25 Jul 2025 17:04:21 +0800 Subject: [PATCH] Add just input area string Y position. --- src/graphics/VirtualKeyboard.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/graphics/VirtualKeyboard.cpp b/src/graphics/VirtualKeyboard.cpp index 521cad360..dedd1595c 100644 --- a/src/graphics/VirtualKeyboard.cpp +++ b/src/graphics/VirtualKeyboard.cpp @@ -163,7 +163,7 @@ void VirtualKeyboard::drawInputArea(OLEDDisplay *display, int16_t offsetX, int16 // Draw text inside the box - properly centered vertically in the input box int textX = offsetX + 4; - int textY = boxY - 1; // Moved down by 1 pixel + int textY = boxY; // Moved down by 1 pixel if (!scrolledText.empty()) { display->drawString(textX, textY, scrolledText.c_str()); @@ -175,7 +175,7 @@ void VirtualKeyboard::drawInputArea(OLEDDisplay *display, int16_t offsetX, int16 // Ensure cursor stays within box bounds if (cursorX < offsetX + boxWidth - 2) { // Align cursor properly with the text baseline and height - moved down by 2 pixels - display->drawVerticalLine(cursorX, textY + 3, 10); + display->drawVerticalLine(cursorX, textY + 2, 10); } } }