lunduniversity / introprog-scalalib

Scala library with simple-to-use utilites for students of introductory programming. http://cs.lth.se/pgk/api
BSD 2-Clause "Simplified" License
60 stars 14 forks source link

make introprog.PixelWindow handle Delet key in clear text #1

Closed bjornregnell closed 4 years ago

bjornregnell commented 6 years ago

Delete key is now a special utf charcter displayed as  or \utf(007F). Make lastKey be "Delete"

elliotbrack commented 4 years ago

This also goes for the arrow keys, enter key, tab, and so on on OS X. Is that out of scope for the project? I imagine you'd want some sort of Map[String, String] for all the special characters, or handle all the special cases by their keycode.

The root cause is Java special handling on OS X to make ⌘ et al display correctly, so I imagine you could extract the lookup table from that.