After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 693847 - Don't repeat the same key in all 4 corners of some keys
Don't repeat the same key in all 4 corners of some keys
Status: RESOLVED OBSOLETE
Product: libgnomekbd
Classification: Core
Component: Drawing
unspecified
Other Linux
: Normal minor
: ---
Assigned To: libgnomekbd maintainers
Sergey V. Udaltsov
Depends on:
Blocks:
 
 
Reported: 2013-02-14 22:52 UTC by James M. Leddy
Modified: 2021-07-05 12:33 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Remove-redundent-key-label-information.patch (1.99 KB, patch)
2013-02-14 22:59 UTC, James M. Leddy
needs-work Details | Review

Description James M. Leddy 2013-02-14 22:52:22 UTC
On my system, there are a few keys where the modifier doesn't change the actual keycode of the keys. In these cases, we probably want to just show what the key is once, instead of 4 separate times, cluttering the key and not really adding any new information. 

To give you an example of what I mean, I have two images. First is what we do today, the second is what it should look like:

http://imgur.com/BaSoDZp
http://imgur.com/idrhOT5
Comment 1 James M. Leddy 2013-02-14 22:57:59 UTC
Sorry, the second should look like http://imgur.com/4o1j2BI
Comment 2 James M. Leddy 2013-02-14 22:59:05 UTC
Created attachment 236196 [details] [review]
Remove-redundent-key-label-information.patch
Comment 3 James M. Leddy 2013-02-14 23:04:48 UTC
also the related distro bug for this is https://bugs.launchpad.net/gnome-control-center/+bug/1025508
Comment 4 James M. Leddy 2013-03-14 15:15:09 UTC
Hi, would someone please comment on the suitability of this patch?
Comment 5 Michael Catanzaro 2016-01-22 16:03:59 UTC
Antonio, what do you think about this patch?
Comment 6 Antonio Ospite 2016-01-22 16:59:22 UTC
While James has a point about duplicated key labels not being pretty, I think that handling just the case of GKBD_KEYBOARD_DRAWING_POS_TOPLEFT like the current patch does is not general enough.

Maybe some option to say "if _all_ key labels are the same just show one of them" can work, but I don't think it should be the default behavior, because the widget now tries to be quite adherent to the concept of groups and levels as in xkb.

After all, in the case James showed, the same key label is shown multiple times because the same keysym will be generated at different levels.
Comment 7 Bastien Nocera 2016-03-02 13:39:29 UTC
(In reply to Antonio Ospite from comment #6)
> While James has a point about duplicated key labels not being pretty, I
> think that handling just the case of GKBD_KEYBOARD_DRAWING_POS_TOPLEFT like
> the current patch does is not general enough.
> 
> Maybe some option to say "if _all_ key labels are the same just show one of
> them" can work, but I don't think it should be the default behavior, because
> the widget now tries to be quite adherent to the concept of groups and
> levels as in xkb.

I don't think that the widget's default behaviour should be based on whether it can be used as a keymap debugging tool.

> After all, in the case James showed, the same key label is shown multiple
> times because the same keysym will be generated at different levels.
Comment 8 Bastien Nocera 2016-03-02 13:41:19 UTC
Review of attachment 236196 [details] [review]:

If you show only the top-left keysym, there's no way to differentiate between a key having the same key on all 4 levels, and a key having a keysym for only one level.

Instead, it should probably be drawn to take the whole key, so it's obvious what the keysym would be.
Comment 9 GNOME Infrastructure Team 2021-07-05 12:33:55 UTC
GNOME is going to shut down bugzilla.gnome.org in favor of gitlab.gnome.org.
As part of that, we are mass-closing older open tickets in bugzilla.gnome.org
which have not seen updates for a longer time (resources are unfortunately
quite limited so not every ticket can get handled).

If you can still reproduce the situation described in this ticket in a recent
and supported software version, then please follow
  https://wiki.gnome.org/GettingInTouch/BugReportingGuidelines
and create a new ticket at
  https://gitlab.gnome.org/GNOME/libgnomekbd/-/issues/

Thank you for your understanding and your help.