In the sign/encrypt window the entries in the line "encrypt to others" are cut off at the front if the window is to small to display the whole certificate information string.
In the line "encrypt to me" the entry is cut off at the end in the same situation.
The later is the more suitable behavior.
Description
Revisions and Commits
rKLEOPATRA Kleopatra | |||
rKLEOPATRAefed6dd30da2 Improve cursor positioning of certificate input field |
Event Timeline
I'm not sure whether this can be solved satisfactory because we use different UI elements. For "Encrypt for me" we use a drop-down box because usually a user won't have that many keys (often only one), so that a drop-down box is more convenient than an input field with auto-completion. For "Encrypt for others" we use an input field with auto-completion because there can be 100s keys of others which makes using a drop-down box unfeasible.
The drop-down box always cuts of the text at the end. The input field always makes sure that the cursor is visible. If the cursor is at the end (as in the screenshot), then the text obviously has to be cut of at the start.
I could move the cursor to the start of the input field, if the user has selected a key. I'll give it at try.
I have improved the cursor positioning:
- Keep the cursor position when a key/group is updated in the background.
- Move the cursor to the start when the user finishes editing (with Return), selects a key/group via the selection dialog, or moves focus to another UI element.
- Otherwise, we keep the default behavior.
Please give it a try.
Well, the picture given as example above looks exactly as before if I choose a key by clicking on it. But at least it changes after hitting return or switching to the next line, so it's an improvement.