提交 378ff3f4 编写于 作者: P Peng Lyu

add standalone detection

上级 87ee59fa
......@@ -122,6 +122,7 @@ export const isSafari = (!isChrome && (userAgent.indexOf('Safari') >= 0));
export const isWebkitWebView = (!isChrome && !isSafari && isWebKit);
export const isIPad = (userAgent.indexOf('iPad') >= 0);
export const isEdgeWebView = isEdge && (userAgent.indexOf('WebView/') >= 0);
export const isStandalone = (window.matchMedia('(display-mode: standalone)').matches);
export function hasClipboardSupport() {
if (isIE) {
......
......@@ -345,6 +345,10 @@ export class WorkbenchKeybindingService extends AbstractKeybindingService {
return false;
}
if (browser.isStandalone) {
return false;
}
if (browser.isFullscreen() && (<any>navigator).keyboard) {
return false;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册