ianharrigan / haxeui-rich-text

Rich text components for haxeui
4 stars 1 forks source link

Code : Bug on key "<" (Neko,Windows) #1

Open MangelMaxime opened 10 years ago

MangelMaxime commented 10 years ago

I used this code :

<hbox height="100%" id="main-vbox" style="backgroundColor: #b5c1c5" width="100%">
        <vbox height="100%" id="todo-list" style="backgroundColor: #5b6163" width="20%"/>
        <tabview height="100%" id="todo-tabs" width="80%">
            <vbox text="Code editor" width="100%" height="100%">
                <code width="100%" height="100%" syntax="haxe"/>
            </vbox>
            <vbox text="Preview"/>
        </tabview>
    </hbox>

When I press the key "<" on a flash target I get the correct character "<"

But on the neko and windows target I get ",".

If I click "shift+<", i get ">" has it sould to be.

I don't know if this is a problem with HaxeUI or with Haxe.

ianharrigan commented 10 years ago

Ill test it out, but my first guess is its an openfl issue... there are a load of issues with openfl textfields (on non flash targets) unfortunately. I keep meaning to have a delve into it and see if i can work a few out, but never get the time.

Ill leave this open in the meantime however.

Cheers, Ian

ianharrigan commented 10 years ago

(i also use a different keyboard - spanish - so i certainly know that there are things that "just cant be typed")

MangelMaxime commented 10 years ago

That's sure that you can't type all the char that I have but. I made some more test, and I foudn out that my azerty keyboard is acting like an azerty keyboard and an qwerty keyboard.

That's a really strange behavior because like that I can't do all the char for example none of my key is able to do ">".

The number are typed directly as normaly I need to press shift. etc.

I think like you this is a problem of openfl. Will try to figure out some informations about that.

For informations, I comment your post on openfl issue.

ianharrigan commented 10 years ago

Yeah, i think its a code page issue. "ñ", for example is impossible to input into an openfl text field (on non-flash targets).