godot icon indicating copy to clipboard operation
godot copied to clipboard

[TextEdit / LineEdit] Add support for OEM Alt codes input.

Open bruvzg opened this issue 1 year ago • 4 comments

In addition to existing Unicode Alt codes (Alt + Num+ + hex code):

  • Adds support for OEM (CP437) Alt codes (Alt + dec code without leading zero).
  • Adds support for Windows (CP1252) Alt codes (Alt + dec code with leading zero).
  • Codes greater than 255 produces Unicode characters.

Fixes https://github.com/godotengine/godot-proposals/issues/9981 Fixes https://github.com/godotengine/godot/issues/83294

bruvzg avatar Jun 22 '24 12:06 bruvzg

How come it's a draft?

Mickeon avatar Jul 05 '24 07:07 Mickeon

@bruvzg Could you look into rebasing this so I can review it?

Calinou avatar Jan 10 '25 17:01 Calinou

Unicode Alt input was previously changed to display input code as uXXXX, so I have updated this to do the same for OEM/Win codes as well for consistency (displayed as oXXX and wXXX).

bruvzg avatar Jan 10 '25 18:01 bruvzg

I suggest adding these notes to TextEdit.xml and LineEdit.xml at the end of their class description (before other notes)

Added.

bruvzg avatar Feb 21 '25 06:02 bruvzg

I'm make a app with code scanner, this feature was very useful. need this.

CsloudX avatar Apr 10 '25 05:04 CsloudX

Thanks!

Repiteo avatar Apr 10 '25 21:04 Repiteo