當前位置: 首頁>>代碼示例>>TypeScript>>正文


TypeScript Focus.blur方法代碼示例

本文整理匯總了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);
   }
 });
開發者ID:abstask,項目名稱:tinymce,代碼行數:8,代碼來源:ResumeEditing.ts

示例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();
    });
  };
開發者ID:abstask,項目名稱:tinymce,代碼行數:38,代碼來源:IosMode.ts

示例3: function

 const dismissKeyboard = function () {
   Focus.blur(frame);
 };
開發者ID:abstask,項目名稱:tinymce,代碼行數:3,代碼來源:IosKeyboard.ts

示例4:

 editorApi.onToReading(function () {
   Focus.blur(editorApi.body());
 }),
開發者ID:danielpunkass,項目名稱:tinymce,代碼行數:3,代碼來源:AndroidEvents.ts


注:本文中的@ephox/sugar.Focus.blur方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。