5
164
Fork
You've already forked Gitte
16

Accessibility: commit message textfield eats the Tab key and has no placeholder text #119

Closed
opened 2026年06月03日 17:00:45 +02:00 by nekohayo · 2 comments

In 0.6.0, this field:

image

...has two minor problems:

  • It does not have a placeholder text (is it actually possible to do that with that widget type? Not entirely sure, you might be in a similar situation to GNOME Calendar's event editor note field that @zelda_ahmed & @theevilskeleton have been working on recently in various merge requests...)

  • More importantly, it eats the Tab and Shift+Tab keys, entrapping the keyboard navigation user into that field (can't go back out to the previous field or move on to the buttons below using only the keyboard). I don't think tab indentation makes sense in commit messages, so ideally it should reserve those keys for keyboard navigation between widgets.

Also, it would very nice to have line length warnings/counters for the subject line and a line length indicator for the message field somehow, like Gitg and Commit do... but I presume that would be a separate wishlist ticket, unless it would materially influence the widgetry choices in a way that affects the above problems :)

In 0.6.0, this field: ![image](/attachments/f2842087-2433-41fb-bed7-176d01cb3df6) ...has two minor problems: * It does not have a placeholder text (is it actually possible to do that with that widget type? Not entirely sure, you might be in a similar situation to GNOME Calendar's event editor note field that @zelda_ahmed & @theevilskeleton have been working on recently in [various merge requests](https://gitlab.gnome.org/GNOME/gnome-calendar/-/merge_requests/?state=all&label_name=View%3A+event+details&search=notes)...) * More importantly, it eats the `Tab` and `Shift+Tab` keys, entrapping the keyboard navigation user into that field (can't go back out to the previous field or move on to the buttons below using only the keyboard). I don't think tab indentation makes sense in commit messages, so ideally it should reserve those keys for keyboard navigation between widgets. Also, it would very nice to have line length warnings/counters for the subject line and a line length indicator for the message field somehow, like Gitg and [Commit](https://flathub.org/en/apps/re.sonny.Commit) do... but I presume that would be a separate wishlist ticket, unless it would materially influence the widgetry choices in a way that affects the above problems :)

Oh, yeah. Will set set_accepts_tab(false)

Oh, yeah. Will set `set_accepts_tab(false)`

The placeholder via overlay is a pretty neat idea, I copied that :-)

For the enhancements I made a new issue: #120

The placeholder via overlay is a pretty neat idea, I copied that :-) For the enhancements I made a new issue: https://codeberg.org/ckruse/Gitte/issues/120
Sign in to join this conversation.
No Branch/Tag specified
main
renovate/uuid-1.x-lockfile
next
0.8.1
0.8.0
0.7.2
0.7.1
0.7.0
0.6.1
0.6.0
0.5.0
0.4.1
0.4.0
0.3.0
0.2.0
0.1.10
0.1.9
0.1.8
0.1.7
0.1.6
0.1.5
0.1.4
0.1.3
0.1.2
0.1.1
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
ckruse/Gitte#119
Reference in a new issue
ckruse/Gitte
No description provided.
Delete branch "%!s()"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?