Changeset b1674ed in flex_extract.git for Documentation/html/_static/doctools.js
- Timestamp:
- Apr 1, 2020, 5:03:13 PM (4 years ago)
- Branches:
- master, ctbto, dev
- Children:
- d78851d, e0005c9
- Parents:
- 50f9ca6
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Documentation/html/_static/doctools.js
rba99230 rb1674ed 5 5 * Sphinx JavaScript utilities for all documentation. 6 6 * 7 * :copyright: Copyright 2007-20 19by the Sphinx team, see AUTHORS.7 * :copyright: Copyright 2007-2020 by the Sphinx team, see AUTHORS. 8 8 * :license: BSD, see LICENSE for details. 9 9 * … … 88 88 node.nodeValue = val.substr(0, pos); 89 89 if (isInSVG) { 90 var bbox = span.getBBox();91 90 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; 93 93 rect.y.baseVal.value = bbox.y; 94 94 rect.width.baseVal.value = bbox.width; 95 95 rect.height.baseVal.value = bbox.height; 96 96 rect.setAttribute('class', className); 97 var parentOfText = node.parentNode.parentNode;98 97 addItems.push({ 99 98 "parent": node.parentNode, … … 285 284 286 285 initOnKeyListeners: function() { 287 $(document).key up(function(event) {286 $(document).keydown(function(event) { 288 287 var activeElementType = document.activeElement.tagName; 289 288 // 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) { 291 291 switch (event.keyCode) { 292 292 case 37: // left
Note: See TracChangeset
for help on using the changeset viewer.