提交 f5b15d36 编写于 作者: B Benjamin Pasero

Search: no a11y feedback for search results and search progress (fixes #2644)

上级 1e9c1710
......@@ -7,6 +7,7 @@
import 'vs/css!./aria';
import nls = require('vs/nls');
import {isMacintosh} from 'vs/base/common/platform';
import {Builder, $} from 'vs/base/browser/builder';
let ariaContainer: Builder;
......@@ -30,7 +31,11 @@ export function alert(msg: string): void {
* Given the provided message, will make sure that it is read as status to screen readers.
*/
export function status(msg: string): void {
insertMessage(statusContainer, msg);
if (isMacintosh) {
alert(msg); // VoiceOver does not seem to support status role
} else {
insertMessage(statusContainer, msg);
}
}
function insertMessage(target: Builder, msg: string): void {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册