Pernosco / pernosco

General-purpose public wiki and issue tracking
13 stars 0 forks source link

Support <home> and <end> keyboard keys in condition/print expressions #34

Open julienw opened 3 years ago

julienw commented 3 years ago

While using the "Executions" panel, I realized that the keys Home and End don't work at all, when editing conditions or print expressions.

Maybe related: when pasting a value, the cursor goes at the start of the field, instead of staying where it was. The 2 issues together make these fields more difficult to use than they could be.

Thanks for the wondeful tool!

khuey commented 3 years ago

Do you see this in Chrome? I don't, and that makes me think this is a Firefox bug :(

End and paste work for me but Home does not, in Firefox.

khuey commented 3 years ago

Might be https://bugzilla.mozilla.org/show_bug.cgi?id=1623717

julienw commented 3 years ago

Yeah all of this works in Chrome for me.

Might be https://bugzilla.mozilla.org/show_bug.cgi?id=1623717

Sounds like it 😞.

The "Paste" issue could be because of the input.textContent = input.textContent. I think I recall such an issue when I worked on the Firefox OS Messages app. I've seen hacks where the cursor position was remembered before doing that (but don't recall where exactly).