本文整理汇总了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());
}),