Commit f14ea4b803726285144ed09e5e390000b8baf41a
fix avatar suggestion with mouse
mix irving committed on 2/3/2017, 11:55:32 AMParent: 15db93aa5f5d58eb433e80d31bd6e6615d70a109
Files changed
modules_basic/feed.js | changed |
modules_core/search-box.js | changed |
modules_basic/feed.js | |||
---|---|---|---|
@@ -27,8 +27,9 @@ | |||
27 | 27 … | ||
28 | 28 … | api.signifier(id, function (_, names) { | |
29 | 29 … | if(names.length) container.title = names[0].name | |
30 | 30 … | }) | |
31 … | + container.id = id | ||
31 | 32 … | ||
32 | 33 … | pull( | |
33 | 34 … | api.sbot_user_feed({id: id, old: false, live: true}), | |
34 | 35 … | Scroller(container, content, api.message_render, true, false) |
modules_core/search-box.js | ||
---|---|---|
@@ -26,11 +26,8 @@ | ||
26 | 26 … | placeholder: 'Commands', |
27 | 27 … | 'ev-keyup': ev => { |
28 | 28 … | switch (ev.keyCode) { |
29 | 29 … | case 13: // enter |
30 | - ev.stopPropagation() | |
31 | - suggestBox.complete() | |
32 | - | |
33 | 30 … | if (go(input.value.trim(), !ev.ctrlKey)) |
34 | 31 … | input.blur() |
35 | 32 … | return |
36 | 33 … | case 27: // escape |
@@ -39,8 +36,12 @@ | ||
39 | 36 … | return |
40 | 37 … | } |
41 | 38 … | } |
42 | 39 … | }) |
40 … | + input.addEventListener('suggestselect', ev => { | |
41 … | + if (go(input.value.trim(), !ev.ctrlKey)) | |
42 … | + input.blur() | |
43 … | + }) | |
43 | 44 … | const search = h('Search', input) |
44 | 45 … | |
45 | 46 … | search.input = input |
46 | 47 … | search.activate = (sigil, ev) => { |
Built with git-ssb-web