diff --git a/chrome/content/zotero-platform/mac/overlay.css b/chrome/content/zotero-platform/mac/overlay.css index e1cd1e980..7d9898d85 100644 --- a/chrome/content/zotero-platform/mac/overlay.css +++ b/chrome/content/zotero-platform/mac/overlay.css @@ -190,13 +190,11 @@ } #zotero-collections-tree treechildren::-moz-tree-twisty(selected) { - -moz-appearance: none; - list-style-image: url("chrome://zotero/skin/mac/twisty-selected.png"); + list-style-image: url("chrome://zotero/skin/mac/twisty-selected.svg"); } #zotero-collections-tree treechildren::-moz-tree-twisty(selected, open) { - -moz-appearance: none; - list-style-image: url("chrome://zotero/skin/mac/twisty-selected-open.png"); + list-style-image: url("chrome://zotero/skin/mac/twisty-selected-open.svg"); } #zotero-collections-splitter, #zotero-items-splitter @@ -272,18 +270,18 @@ treechildren::-moz-tree-twisty { -moz-appearance: none; - width: 11px; - height: 11px; - list-style-image: url("chrome://zotero/skin/mac/twisty.png"); + width: 16px; + height: 16px; + list-style-image: url("chrome://zotero/skin/mac/twisty.svg"); -moz-padding-start: 5px; -moz-padding-end: 6px; } treechildren::-moz-tree-twisty(open) { -moz-appearance: none; - width: 11px; - height: 11px; - list-style-image: url("chrome://zotero/skin/mac/twisty-open.png"); + width: 16px; + height: 16px; + list-style-image: url("chrome://zotero/skin/mac/twisty-open.svg"); -moz-padding-start: 4px; -moz-padding-end: 7px; } @@ -291,23 +289,23 @@ treechildren::-moz-tree-twisty(open) { /* How to get active twisty? treechildren::-moz-tree-twisty(active) { -moz-appearance: none; - list-style-image: url("chrome://zotero/skin/mac/twisty-active.png") !important; + list-style-image: url("chrome://zotero/skin/mac/twisty-active.svg") !important; } treechilren::-moz-tree-twisty(active) { -moz-appearance: none; - list-style-image: url("chrome://zotero/skin/mac/twisty-active-open.png"); + list-style-image: url("chrome://zotero/skin/mac/twisty-active-open.svg"); } */ tree:focus treechildren::-moz-tree-twisty(selected) { -moz-appearance: none; - list-style-image: url("chrome://zotero/skin/mac/twisty-selected.png"); + list-style-image: url("chrome://zotero/skin/mac/twisty-selected.svg"); } tree:focus treechildren::-moz-tree-twisty(selected, open) { -moz-appearance: none; - list-style-image: url("chrome://zotero/skin/mac/twisty-selected-open.png"); + list-style-image: url("chrome://zotero/skin/mac/twisty-selected-open.svg"); } treechildren::-moz-tree-image { diff --git a/chrome/content/zotero/bindings/columnpicker.xml b/chrome/content/zotero/bindings/columnpicker.xml deleted file mode 100644 index c406f2213..000000000 --- a/chrome/content/zotero/bindings/columnpicker.xml +++ /dev/null @@ -1,146 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - return Components.interfaces.nsIAccessibleProvider.XULButton; - - - - - - - - 4) { - aPopup.removeChild(aPopup.firstChild); - } - while (bPopup.childNodes.length > 0) { - bPopup.removeChild(bPopup.firstChild); - } - var refChild = aPopup.firstChild; - var refChild2 = bPopup.firstChild; - - var tree = this.parentNode.parentNode; - for (var currCol = tree.columns.getFirstColumn(); currCol; currCol = currCol.getNext()) { - var currElement = currCol.element; - - // Construct an entry for each column in the row, unless - // it is not being shown. - if ((!currElement.hasAttribute("ignoreincolumnpicker")) && (!currElement.hasAttribute("submenu"))) { - var popupChild = document.createElement("menuitem"); - popupChild.setAttribute("type", "checkbox"); - var columnName = currElement.getAttribute("display") || currElement.getAttribute("label"); - popupChild.setAttribute("label", columnName); - popupChild.setAttribute("colindex", currCol.index); - if (currElement.getAttribute("hidden") != "true") { - popupChild.setAttribute("checked", "true"); - } - if (currCol.primary) { - popupChild.setAttribute("disabled", "true"); - } - aPopup.insertBefore(popupChild, refChild); - } - - //Idem for the submenu - if ((!currElement.hasAttribute("ignoreincolumnpicker")) && (currElement.hasAttribute("submenu"))) { - var popupChild = document.createElement("menuitem"); - popupChild.setAttribute("type", "checkbox"); - var columnName = currElement.getAttribute("display") || currElement.getAttribute("label"); - popupChild.setAttribute("label", columnName); - popupChild.setAttribute("colindex", currCol.index); - if (currElement.getAttribute("hidden") != "true") { - popupChild.setAttribute("checked", "true"); - } - bPopup.insertBefore(popupChild, refChild2); - } - } - ]]> - - - - - - - - - - - \ No newline at end of file diff --git a/chrome/content/zotero/bindings/guidancepanel.xml b/chrome/content/zotero/bindings/guidancepanel.xml index aeea03b89..5f9999e50 100644 --- a/chrome/content/zotero/bindings/guidancepanel.xml +++ b/chrome/content/zotero/bindings/guidancepanel.xml @@ -32,8 +32,11 @@ + @@ -73,7 +95,7 @@ - + diff --git a/chrome/content/zotero/bindings/styled-textbox.xml b/chrome/content/zotero/bindings/styled-textbox.xml index 443532728..9cb967fa8 100644 --- a/chrome/content/zotero/bindings/styled-textbox.xml +++ b/chrome/content/zotero/bindings/styled-textbox.xml @@ -125,6 +125,18 @@ this._eventHandler = function (event) { //Zotero.debug(event.type); switch (event.type) { + case 'keydown': + // Intercept and manually trigger redo for Cmd-Shift-Z, + // which keeps it from toggling the Zotero pane instead + if (Zotero.isMac && event.metaKey && event.shiftKey && !event.ctrlKey + && !event.altKey && event.keyCode == 90) { + event.stopPropagation(); + event.preventDefault(); + self.redo(); + return; + } + break; + case 'keypress': // Ignore keypresses that don't change // any text @@ -336,6 +348,14 @@ + + + + + +