git ssb

16+

Dominic / patchbay



Commit 4ca8ad06f6eb102ed4dc8d4ee6177a1359cfee43

mix bows his head in shame and quietly published an /inbox fix

mixmix committed on 8/13/2018, 9:40:52 AM
Parent: 3acb5e0d2473ed72723c1754766f8578f67e551c

Files changed

app/sync/catch-keyboard-shortcut.jschanged
package-lock.jsonchanged
package.jsonchanged
app/sync/catch-keyboard-shortcut.jsView
@@ -34,18 +34,20 @@
3434 function textFieldShortcuts (ev) {
3535 switch (ev.keyCode) {
3636 case 13: // ctrl+enter
3737 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
3939 }
4040 return
4141 case 27: // esc
4242 return ev.target.blur()
4343 }
4444 }
4545
4646 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...)
4850
4951 // Messages
5052 if (ev.keyCode === 71) { // gg = scroll to top
5153 if (!gPressed) {
@@ -112,6 +114,9 @@
112114 const msg = ev.target
113115 if (!msg.classList.contains('Message')) return
114116
115117 // 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()
117120 }
121 +
122 +function noop () {}
package-lock.jsonView
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.jsonView
@@ -57,9 +57,9 @@
5757 "open-external": "^0.1.1",
5858 "patch-context": "^2.0.1",
5959 "patch-drafts": "0.0.6",
6060 "patch-history": "^1.0.0",
61- "patch-inbox": "^1.1.6",
61 + "patch-inbox": "^1.1.7",
6262 "patch-settings": "^1.1.2",
6363 "patch-suggest": "^2.0.2",
6464 "patchbay-book": "^1.0.8",
6565 "patchbay-dark-crystal": "^1.0.1",

Built with git-ssb-web