Confirm text entry with keyboard

Discussion forum for contributors and developers who are using the QCAD ECMAScript development platform or the C++ plugin interface or who are otherwise looking to contribute to QCAD (translations, documentation, etc).

Moderator: andrew

Post Reply
teegee
Active Member
Posts: 26
Joined: Wed Sep 21, 2016 5:51 am

Confirm text entry with keyboard

Post by teegee » Sat Mar 11, 2017 5:19 am

Hi Andrew,

Just created a tiny pull request. I'm not sure what the best way is to communicate one-liner patches.. :)

I was going to add one more thing, which is to interpret ctrl-enter in the TE textbox(es) as a dialog OK/close. The problem is that I don't know what the proper place to put that is. I often place small text labels in my drawings, and it would be nice to do this with minimal mouse action. What do you think?

Cheers,

Rob

User avatar
andrew
Site Admin
Posts: 5636
Joined: Fri Mar 30, 2007 6:07 am

Re: Confirm text entry with keyboard

Post by andrew » Mon Mar 13, 2017 8:30 am

teegee wrote:Just created a tiny pull request. I'm not sure what the best way is to communicate one-liner patches.. :)
Thanks, I've merged them.
teegee wrote:I was going to add one more thing, which is to interpret ctrl-enter in the TE textbox(es) as a dialog OK/close. The problem is that I don't know what the proper place to put that is. I often place small text labels in my drawings, and it would be nice to do this with minimal mouse action. What do you think?
I've added the shortcut to TextDialog.ui:
https://github.com/qcad/qcad/commit/2aa ... f5c52b9c91

teegee
Active Member
Posts: 26
Joined: Wed Sep 21, 2016 5:51 am

Re: Confirm text entry with keyboard

Post by teegee » Mon Mar 13, 2017 11:20 am

andrew wrote:I've added the shortcut to TextDialog.ui:
https://github.com/qcad/qcad/commit/2aa ... f5c52b9c91
Wow, that is a whole lot simpler than what I had in mind :)
Thanks!

Post Reply

Return to “QCAD Developers and Contributors”