Jump to content

TextField demo


Josh
 Share

Recommended Posts

It took quite a lot of work just to get the right key codes out of X11. To get an idea of what is involved see this code:
https://github.com/cyrus-and/xkeylogger/blob/master/xkeylogger.c

The textfield should be fast and responsive for both mouse and keyboard events. I have only tried it in a VM which is always a little sluggish.

Backspace and delete are working but I have not implemented undo / redo. All keys should work, on all types of keyboard layouts and languages. No weird undefined characters should be appear if you press any type of key.

TextField.zip

2056563277_Screenshotfrom2021-05-2903-55-41.png.0c56cad2d0b7ef7a537d5d200c9eebe0.png

My job is to make tools you love, with the features you want, and performance you can't live without.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...