git ssb

16+

Dominic / patchbay



Commit f14ea4b803726285144ed09e5e390000b8baf41a

fix avatar suggestion with mouse

mix irving committed on 2/3/2017, 11:55:32 AM
Parent: 15db93aa5f5d58eb433e80d31bd6e6615d70a109

Files changed

modules_basic/feed.jschanged
modules_core/search-box.jschanged
modules_basic/feed.jsView
@@ -27,8 +27,9 @@
2727
2828 api.signifier(id, function (_, names) {
2929 if(names.length) container.title = names[0].name
3030 })
31 + container.id = id
3132
3233 pull(
3334 api.sbot_user_feed({id: id, old: false, live: true}),
3435 Scroller(container, content, api.message_render, true, false)
modules_core/search-box.jsView
@@ -26,11 +26,8 @@
2626 placeholder: 'Commands',
2727 'ev-keyup': ev => {
2828 switch (ev.keyCode) {
2929 case 13: // enter
30- ev.stopPropagation()
31- suggestBox.complete()
32-
3330 if (go(input.value.trim(), !ev.ctrlKey))
3431 input.blur()
3532 return
3633 case 27: // escape
@@ -39,8 +36,12 @@
3936 return
4037 }
4138 }
4239 })
40 + input.addEventListener('suggestselect', ev => {
41 + if (go(input.value.trim(), !ev.ctrlKey))
42 + input.blur()
43 + })
4344 const search = h('Search', input)
4445
4546 search.input = input
4647 search.activate = (sigil, ev) => {

Built with git-ssb-web