SHA256
Синхронизировать изменения проекта
This commit is contained in:
+11
-4
@@ -6083,6 +6083,13 @@ static void editorKeyCb(lv_event_t *event) {
|
||||
rebuildScreen();
|
||||
return;
|
||||
}
|
||||
if (strcmp(token, "<SPACE>") == 0) {
|
||||
keepCursorAtEnd();
|
||||
lv_textarea_add_text(gInputTextArea, " ");
|
||||
syncEditValueFromTextarea();
|
||||
keepCursorAtEnd();
|
||||
return;
|
||||
}
|
||||
|
||||
String out = token;
|
||||
if (gKeyboardMode == KEYBOARD_MODE_ALPHA && gKeyboardShift) {
|
||||
@@ -7253,10 +7260,10 @@ static void drawKeyRow(const char *const *tokens,
|
||||
lv_coord_t h,
|
||||
lv_coord_t gap,
|
||||
uint32_t bgColor,
|
||||
bool uppercase = false,
|
||||
bool uppercase = false,
|
||||
const lv_font_t *font = &lv_font_montserrat_18) {
|
||||
for (int i = 0; i < count; ++i) {
|
||||
String label = tokens[i];
|
||||
String label = strcmp(tokens[i], "<SPACE>") == 0 ? String("SPACE") : String(tokens[i]);
|
||||
if (uppercase) {
|
||||
label.toUpperCase();
|
||||
}
|
||||
@@ -7276,8 +7283,8 @@ static void drawTextEditorKeyboard(lv_coord_t originY) {
|
||||
static const char *symLeftRow1[] = {"://", "/", ":", "_", "@"};
|
||||
static const char *symLeftRow2[] = {".com", ".net", ".org", ".me", ".io"};
|
||||
static const char *symRightRow0[] = {"6", "7", "8", "9", "0"};
|
||||
static const char *symRightRow1[] = {"?", "&", "=", "+", "-"};
|
||||
static const char *symRightRow2[] = {"%", "#", "~", ":", "/"};
|
||||
static const char *symRightRow1[] = {"?", "!", "=", "+", "-"};
|
||||
static const char *symRightRow2[] = {"<SPACE>", "#", "~", ":", "/"};
|
||||
|
||||
const lv_coord_t keyH = 62;
|
||||
const lv_coord_t keyW5 = 84;
|
||||
|
||||
Reference in New Issue
Block a user