migueldeicaza / TermKit

Terminal Kit - Console UI toolkit for Swift applications
MIT License
458 stars 17 forks source link

Label - support for linking to a target #23

Open migueldeicaza opened 3 years ago

migueldeicaza commented 3 years ago

Labels should support hotkeys, and also a way of linking to a target

This:

var username = TextField ()
var login = Label ("_Login", target: username)

Would make it so that the "Login" has the "L" highlighted and treated like a hotkey, but when activated, it activates the target.