Преглед изворни кода

disable: handle text input

set0xc3 пре 1 година
родитељ
комит
abdf397d06
1 измењених фајлова са 6 додато и 6 уклоњено
  1. 6 6
      microui.odin

+ 6 - 6
microui.odin

@@ -1098,12 +1098,12 @@ textbox_raw :: proc(
 		}
 
 		/* handle text input */
-		if strings.builder_len(ctx.text_input) > 0 {
-			if textedit.input_text(&ctx.textbox_state, strings.to_string(ctx.text_input)) > 0 {
-				textlen^ = strings.builder_len(builder)
-				res += {.CHANGE}
-			}
-		}
+		// if strings.builder_len(ctx.text_input) > 0 {
+		// 	if textedit.input_text(&ctx.textbox_state, strings.to_string(ctx.text_input)) > 0 {
+		// 		textlen^ = strings.builder_len(builder)
+		// 		res += {.CHANGE}
+		// 	}
+		// }
 		/* handle ctrl+a */
 		if .A in ctx.key_pressed_bits &&
 		   .CTRL in ctx.key_down_bits &&