以前のバージョンではタブオーダーが lblLen の次に StatusText が来る順序となっていたが、
25f08998 の修正以降はこれが表示上の順序通りとなるように変更されていた。
しかし、その修正により StatusText にフォーカスを移した際にスクリーンリーダーで
残り文字数が読み上げられなくなり、かえって不便な状態となっていた。
このコミットではタブオーダーを元に戻すのではなく、StatusText の AccessibleText に
残り文字数に関するテキストを含めることでフォーカス時に読み上げられる状態にした。
Fixes:
25f08998 ("TweenMain内の各コントロールのAccessibleNameに適切な名前をセット")
}
/// <summary>
+ /// 残り{0}文字 に類似しているローカライズされた文字列を検索します。
+ /// </summary>
+ internal static string StatusText_AccessibleDescription {
+ get {
+ return ResourceManager.GetString("StatusText_AccessibleDescription", resourceCulture);
+ }
+ }
+
+ /// <summary>
/// 投稿に失敗しました に類似しているローカライズされた文字列を検索します。
/// </summary>
internal static string StatusUpdateFailed1 {
<data name="QuoteStatus_AccessibleText" xml:space="preserve">
<value>[Quote @{0}: {1}]</value>
</data>
+ <data name="StatusText_AccessibleDescription" xml:space="preserve">
+ <value>{0} characters remaining</value>
+ </data>
</root>
\ No newline at end of file
<data name="QuoteStatus_AccessibleText" xml:space="preserve">
<value>[引用 @{0}: {1}]</value>
</data>
+ <data name="StatusText_AccessibleDescription" xml:space="preserve">
+ <value>残り{0}文字</value>
+ </data>
</root>
\ No newline at end of file
{
StatusText.ForeColor = _clInputFont;
}
+
+ this.StatusText.AccessibleDescription = string.Format(Properties.Resources.StatusText_AccessibleDescription, pLen);
+
if (string.IsNullOrEmpty(StatusText.Text))
{
this.inReplyTo = null;
<data name=">>PostButton.ZOrder" xml:space="preserve">
<value>1</value>
</data>
- <data name="lblLen.AccessibleName" xml:space="preserve">
+ <data name="lblLen.AccessibleDescription" xml:space="preserve">
<value>残り文字数</value>
</data>
<data name="lblLen.Dock" type="System.Windows.Forms.DockStyle, System.Windows.Forms">