Commit 4ca8ad06f6eb102ed4dc8d4ee6177a1359cfee43
mix bows his head in shame and quietly published an /inbox fix
mixmix committed on 8/13/2018, 9:40:52 AMParent: 3acb5e0d2473ed72723c1754766f8578f67e551c
Files changed
app/sync/catch-keyboard-shortcut.js | changed |
package-lock.json | changed |
package.json | changed |
app/sync/catch-keyboard-shortcut.js | |||
---|---|---|---|
@@ -34,18 +34,20 @@ | |||
34 | 34 … | function textFieldShortcuts (ev) { | |
35 | 35 … | switch (ev.keyCode) { | |
36 | 36 … | case 13: // ctrl+enter | |
37 | 37 … | if (ev.ctrlKey) { | |
38 | - ev.target.publish() // expects the textField to have a publish method | ||
38 … | + ev.target.publish && ev.target.publish() // expects the textField to have a publish method | ||
39 | 39 … | } | |
40 | 40 … | return | |
41 | 41 … | case 27: // esc | |
42 | 42 … | return ev.target.blur() | |
43 | 43 … | } | |
44 | 44 … | } | |
45 | 45 … | ||
46 | 46 … | function genericShortcuts (ev, { tabs, search, goTo, back }) { | |
47 | - const scroll = tabs.currentPage().scroll || function () {} | ||
47 … | + const scroll = tabs.currentPage().scroll || noop | ||
48 … | + // TODO change this scroll API - it seems some pages | ||
49 … | + // (e.g. Dark Crystal Index has scroll defined and expect an object...) | ||
48 | 50 … | ||
49 | 51 … | // Messages | |
50 | 52 … | if (ev.keyCode === 71) { // gg = scroll to top | |
51 | 53 … | if (!gPressed) { | |
@@ -112,6 +114,9 @@ | |||
112 | 114 … | const msg = ev.target | |
113 | 115 … | if (!msg.classList.contains('Message')) return | |
114 | 116 … | ||
115 | 117 … | // this uses a crudely exported nav api | |
116 | - msg.querySelector('.meta .toggle-raw-msg').click() | ||
118 … | + const target = msg.querySelector('.meta .toggle-raw-msg') | ||
119 … | + if (target) target.click() | ||
117 | 120 … | } | |
121 … | + | ||
122 … | +function noop () {} |
package-lock.json | ||
---|---|---|
The diff is too large to show. Use a local git client to view these changes. Old file size: 327766 bytes New file size: 326929 bytes |
package.json | ||
---|---|---|
@@ -57,9 +57,9 @@ | ||
57 | 57 … | "open-external": "^0.1.1", |
58 | 58 … | "patch-context": "^2.0.1", |
59 | 59 … | "patch-drafts": "0.0.6", |
60 | 60 … | "patch-history": "^1.0.0", |
61 | - "patch-inbox": "^1.1.6", | |
61 … | + "patch-inbox": "^1.1.7", | |
62 | 62 … | "patch-settings": "^1.1.2", |
63 | 63 … | "patch-suggest": "^2.0.2", |
64 | 64 … | "patchbay-book": "^1.0.8", |
65 | 65 … | "patchbay-dark-crystal": "^1.0.1", |
Built with git-ssb-web