Changeset b1674ed in flex_extract.git for Documentation/html/_static/doctools.js


Ignore:
Timestamp:
Apr 1, 2020, 5:03:13 PM (4 years ago)
Author:
Anne Philipp <anne.philipp@…>
Branches:
master, ctbto, dev
Children:
d78851d, e0005c9
Parents:
50f9ca6
Message:

updated online documentation FIX for tickets #265 and #262

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Documentation/html/_static/doctools.js

    rba99230 rb1674ed  
    55 * Sphinx JavaScript utilities for all documentation.
    66 *
    7  * :copyright: Copyright 2007-2019 by the Sphinx team, see AUTHORS.
     7 * :copyright: Copyright 2007-2020 by the Sphinx team, see AUTHORS.
    88 * :license: BSD, see LICENSE for details.
    99 *
     
    8888        node.nodeValue = val.substr(0, pos);
    8989        if (isInSVG) {
    90           var bbox = span.getBBox();
    9190          var rect = document.createElementNS("http://www.w3.org/2000/svg", "rect");
    92           rect.x.baseVal.value = bbox.x;
     91          var bbox = node.parentElement.getBBox();
     92          rect.x.baseVal.value = bbox.x;
    9393          rect.y.baseVal.value = bbox.y;
    9494          rect.width.baseVal.value = bbox.width;
    9595          rect.height.baseVal.value = bbox.height;
    9696          rect.setAttribute('class', className);
    97           var parentOfText = node.parentNode.parentNode;
    9897          addItems.push({
    9998              "parent": node.parentNode,
     
    285284
    286285  initOnKeyListeners: function() {
    287     $(document).keyup(function(event) {
     286    $(document).keydown(function(event) {
    288287      var activeElementType = document.activeElement.tagName;
    289288      // don't navigate when in search box or textarea
    290       if (activeElementType !== 'TEXTAREA' && activeElementType !== 'INPUT' && activeElementType !== 'SELECT') {
     289      if (activeElementType !== 'TEXTAREA' && activeElementType !== 'INPUT' && activeElementType !== 'SELECT'
     290          && !event.altKey && !event.ctrlKey && !event.metaKey && !event.shiftKey) {
    291291        switch (event.keyCode) {
    292292          case 37: // left
Note: See TracChangeset for help on using the changeset viewer.
hosted by ZAMG