Pyeongbeom's text editor

Project

This project may have bugs, but you can try to fix this project.
What do you think of my editor?

Good start.

It’s weird that you capitalize the letter I just typed when I hit shift. I would use a global variable to remember if you should capitalize the next letter typed, something like this:


Also, I’m seeing “None” a lot, especially if I type quickly. To fix this, instead of using KEY _ PRESSED to see if a particular key is pressed, use this block:

(To see the KEY variable, click the arrowhead at the end of the block while ANY KEY is in the menu slot.)

Thanks. I fixed the editor.

This is a really cool idea, but…


i dont think thats what capslock is supposed to do
there’s a bug where keys like PageDown and CapsLock are counted as a character.
im using a full-size keyboard so i have access to more keys, but im pretty sure that F9 isn’t a unicode character

this bug also happens when the text editor is empty and you hold backspace for over a second

The biggest error ever!

I can’t fix that but I’ll fix it sometimes.

i really wanna help you fix the code but i cant because WHY IS EVERY SINGLE VARIABLE IN KOREAN

Why?

Because I am from Korea. I learned Korean before. Just in case, here is the translation below, if you don’t know, I have translated the variables written in Korean back to English.

Translations

  • 문장 입력값: text input (output type: string)
  • 문장의 각 글자를 베껴쓴 값: text input separated by letters (output type: list)
  • 새 줄을 띄어쓰기로 삼았을 때 커서의 행 위치: letter index where the new line character is a space character (output type: number)
  • 텍스트에디터 색상: text color and cursor color of the editor (output type: list = [text color, cursor color])
  • 텍스트에디터 크기: font size and line height of the editor (output type: list = [font size, line height])
  • 텍스트에디터x: initial x position of the editor
  • 텍스트에디터y: initial y position of the editor

Just make a blacklist of all the non-printable keys and check if a key is in that blacklist

What I used is a “if not key pressed” system, for my text editor

you get the key pressed but I won’t display

Is there a reason to insert special multi-character labels?

IMEI may produce sequence of character?
So maybe length>1 and unicode of first char outside of US ASCII?

advanced obfuscation /j

Okay, I fixed the editor.

The code I fixed is:

this is equivalent to

<not <<key (identity of text [control] :: #000080) pressed?> or <key [enter V] pressed?> or <(pushed key) = [Shift] @delInput @addInput> or <([length V] of text (pushed key)) \> [1] @delInput @addInput> @delInput @addInput>>

cool! it works!
might i suggest you add a capslock feature?
variables


Because the author is Korean, I guess. We encourage everybody to use their native language in their projects, which is why Snap! is translated into so many languages! :slight_smile:

If you ask for help on an international forum, making your program readable to potential helpers is quite a reasonable expectation.