Page MenuHome GnuPG

Kleopatra: Sign/encrypt window size issue
Closed, ResolvedPublic

Description

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.

Event Timeline

ikloecker renamed this task from Sign/encrypt window size issue to Kleopatra: Sign/encrypt window size issue.Jul 15 2022, 1:37 PM
ikloecker triaged this task as Normal priority.
ikloecker added a subscriber: ikloecker.

A screenshot would be nice.

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.

ikloecker moved this task from Restricted Project Column to Restricted Project Column on the Restricted Project board.
ikloecker changed the task status from Open to Testing.Jul 18 2022, 10:47 AM
ikloecker removed ikloecker as the assignee of this task.
ikloecker moved this task from Restricted Project Column to Restricted Project Column on the Restricted Project board.
ikloecker added a project: Restricted Project.

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.

werner removed a project: Restricted Project.Sep 22 2022, 10:51 AM
ebo claimed this task.

It's partially resolved, the rest is wontfix at the moment

ebo moved this task from Restricted Project Column to Restricted Project Column on the Restricted Project board.Apr 5 2023, 2:51 PM