[fractal] login_flow.ui: Add mnemonics for keyboard navigation
- From: Daniel Garcia Moreno <danigm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [fractal] login_flow.ui: Add mnemonics for keyboard navigation
- Date: Mon, 15 Apr 2019 15:50:54 +0000 (UTC)
commit e1fbb54ca448aa6342fd2974e8361b6dde2aaa06
Author: Christopher Davis <brainblasted disroot org>
Date: Tue Apr 2 19:06:56 2019 -0400
login_flow.ui: Add mnemonics for keyboard navigation
mnemonics are a tool used for faster keyboard navigation,
and help with accessibility.
This commit adds mnemonics for every entry and button that
either has a label or doesn't have another shortcut.
fractal-gtk/res/ui/login_flow.ui | 23 ++++++++++++++++-------
1 file changed, 16 insertions(+), 7 deletions(-)
---
diff --git a/fractal-gtk/res/ui/login_flow.ui b/fractal-gtk/res/ui/login_flow.ui
index 548870d4..04e35327 100644
--- a/fractal-gtk/res/ui/login_flow.ui
+++ b/fractal-gtk/res/ui/login_flow.ui
@@ -43,7 +43,8 @@
<child>
<object class="GtkButton" id="login_button">
<property name="visible">True</property>
- <property name="label" translatable="true">Log In</property>
+ <property name="use_underline">True</property>
+ <property name="label" translatable="true">_Log In</property>
<property name="action_name">login.server_chooser</property>
<property name="height-request">48</property>
<style>
@@ -54,7 +55,8 @@
<child>
<object class="GtkButton" id="create_account_button">
<property name="visible">True</property>
- <property name="label" translatable="yes">Create Account</property>
+ <property name="use_underline">True</property>
+ <property name="label" translatable="yes">_Create Account</property>
<property name="height-request">48</property>
<property name="action_name">login.create-account</property>
</object>
@@ -159,12 +161,14 @@
<child>
<object class="GtkLabel">
<property name="visible">True</property>
+ <property name="use_underline">True</property>
<property name="can_focus">False</property>
- <property name="label" translatable="yes">User ID</property>
+ <property name="label" translatable="yes">_User ID</property>
<property name="halign">end</property>
<property name="valign">end</property>
<property name="wrap">True</property>
<property name="wrap_mode">PANGO_WRAP_WORD_CHAR</property>
+ <property name="mnemonic_widget">username_entry</property>
<style>
<class name="dim-label"/>
</style>
@@ -173,11 +177,13 @@
<child>
<object class="GtkLabel">
<property name="visible">True</property>
+ <property name="use_underline">True</property>
<property name="can_focus">False</property>
- <property name="label" translatable="yes">Password</property>
+ <property name="label" translatable="yes">_Password</property>
<property name="halign">end</property>
<property name="wrap">True</property>
<property name="wrap_mode">PANGO_WRAP_WORD_CHAR</property>
+ <property name="mnemonic_widget">password_entry</property>
<style>
<class name="dim-label"/>
</style>
@@ -237,7 +243,8 @@
</child>
<child>
<object class="GtkLinkButton" id="forgot_password">
- <property name="label" translatable="yes">Forgot Password?</property>
+ <property name="use_underline">True</property>
+ <property name="label" translatable="yes">_Forgot Password?</property>
<property name="uri">https://riot.im/app/#/login</property>
<property name="halign">start</property>
<style>
@@ -316,9 +323,10 @@
<child>
<object class="GtkButton">
<property name="visible">True</property>
+ <property name="use_underline">True</property>
<property name="can_focus">True</property>
<property name="action_name">login.credentials</property>
- <property name="label" translatable="yes">Next</property>
+ <property name="label" translatable="yes">_Next</property>
<style>
<class name="suggested-action"/>
</style>
@@ -357,9 +365,10 @@
<child>
<object class="GtkButton">
<property name="visible">True</property>
+ <property name="use_underline">True</property>
<property name="can_focus">True</property>
<property name="action_name">login.login</property>
- <property name="label" translatable="yes">Log In</property>
+ <property name="label" translatable="yes">_Log In</property>
<style>
<class name="suggested-action"/>
</style>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]