本文整理匯總了TypeScript中@ephox/sugar.Focus.blur方法的典型用法代碼示例。如果您正苦於以下問題:TypeScript Focus.blur方法的具體用法?TypeScript Focus.blur怎麽用?TypeScript Focus.blur使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類@ephox/sugar.Focus
的用法示例。
在下文中一共展示了Focus.blur方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的TypeScript代碼示例。
示例1:
Focus.active().each(function (active) {
// INVESTIGATE: This predicate may not be required. The purpose of it is to ensure
// that the content window's frame element is not unnecessarily blurred before giving
// it focus.
if (! Compare.eq(active, frame)) {
Focus.blur(active);
}
});
示例2: function
const exit = function () {
meta.restore();
iosEvents.clear();
iosApi.clear();
mask.show();
priorState.on(function (s) {
s.socketHeight.each(function (h) {
Css.set(platform.socket, 'height', h);
});
s.iframeHeight.each(function (h) {
Css.set(platform.editor.getFrame(), 'height', h);
});
document.body.scrollTop = s.scrollTop;
});
priorState.clear();
scrollEvents.on(function (s) {
s.exclusives.unbind();
});
scrollEvents.clear();
Class.remove(platform.container, Styles.resolve('fullscreen-maximized'));
Thor.restoreStyles();
Scrollable.deregister(platform.toolbar);
Css.remove(platform.socket, 'overflow'/*, 'scroll'*/);
Css.remove(platform.socket, '-webkit-overflow-scrolling'/*, 'touch'*/);
// Hide the keyboard and remove the selection so there isn't a blue cursor in the content
// still even once exited.
Focus.blur(platform.editor.getFrame());
PlatformEditor.getActiveApi(platform.editor).each(function (editorApi) {
editorApi.clearSelection();
});
};
示例3: function
const dismissKeyboard = function () {
Focus.blur(frame);
};
示例4:
editorApi.onToReading(function () {
Focus.blur(editorApi.body());
}),