diff options
author | bobzel <zzzman@gmail.com> | 2020-08-20 09:02:03 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-20 09:02:03 -0400 |
commit | 1c5d2738132b147a4c1785e2e926ce1b05a0b019 (patch) | |
tree | 5f23ddbed2b55279dac4dbf0be6adfc4bfb78209 /src | |
parent | da8901bef2d4a0362354c69fe486076a67f8efc4 (diff) | |
parent | 856f013d70392318298c5343fcc80b8a561359f4 (diff) |
Merge pull request #638 from browngraphicslab/acls_uv
volume etc key issues fixed
Diffstat (limited to 'src')
-rw-r--r-- | src/client/views/PreviewCursor.tsx | 1 | ||||
-rw-r--r-- | src/client/views/pdf/PDFMenu.tsx | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/client/views/PreviewCursor.tsx b/src/client/views/PreviewCursor.tsx index d7034fcfb..0eee46275 100644 --- a/src/client/views/PreviewCursor.tsx +++ b/src/client/views/PreviewCursor.tsx @@ -132,6 +132,7 @@ export class PreviewCursor extends React.Component<{}> { e.key !== "Insert" && e.key !== "Home" && e.key !== "End" && e.key !== "PageUp" && e.key !== "PageDown" && e.key !== "NumLock" && e.key !== " " && (e.keyCode < 112 || e.keyCode > 123) && // F1 thru F12 keys + (e.keyCode < 173 || e.keyCode > 183 || e.key === "-") && // mute, volume up/down etc, - is there specifically because its keycode is 173 in Firefox so shouldn't be avoided !e.key.startsWith("Arrow") && !e.defaultPrevented) { if ((!e.metaKey && !e.ctrlKey) || (e.keyCode >= 48 && e.keyCode <= 57) || (e.keyCode >= 65 && e.keyCode <= 90)) {// /^[a-zA-Z0-9$*^%#@+-=_|}{[]"':;?/><.,}]$/.test(e.key)) { diff --git a/src/client/views/pdf/PDFMenu.tsx b/src/client/views/pdf/PDFMenu.tsx index 509831507..0f7b0a688 100644 --- a/src/client/views/pdf/PDFMenu.tsx +++ b/src/client/views/pdf/PDFMenu.tsx @@ -154,7 +154,7 @@ export default class PDFMenu extends AntimodeMenu<AntimodeMenuProps> { const buttons = this.Status === "pdf" ? [ this.highlighter, - <button key="2" className="antimodeMenu-button" title="Drag to Annotate" ref={this._commentCont} onPointerDown={this.pointerDown}> + <button key="2" className="antimodeMenu-button annotate" title="Drag to Annotate" ref={this._commentCont} onPointerDown={this.pointerDown} style={{ cursor: "grab" }}> <FontAwesomeIcon icon="comment-alt" size="lg" /></button>, ] : [ <button key="5" className="antimodeMenu-button" title="Delete Anchor" onPointerDown={this.deleteClicked}> |