<feed xmlns='http://www.w3.org/2005/Atom'>
<title>szurubooru.git/client/js/controls/auto_complete_control.js, branch master</title>
<subtitle>Fork of Szurubooru with patches for running on a modern system sans Docker
</subtitle>
<id>https://git.jakob.space/szurubooru.git/atom?h=master</id>
<link rel='self' href='https://git.jakob.space/szurubooru.git/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.jakob.space/szurubooru.git/'/>
<updated>2020-08-22T14:17:59Z</updated>
<entry>
<title>client/search: fix autocomplete for composite queries</title>
<updated>2020-08-22T14:17:59Z</updated>
<author>
<name>Shyam Sunder</name>
<email>sgsunder1@gmail.com</email>
</author>
<published>2020-08-22T14:17:59Z</published>
<link rel='alternate' type='text/html' href='https://git.jakob.space/szurubooru.git/commit/?id=74c97efdef3154004692b943ef70713d48357dff'/>
<id>urn:sha1:74c97efdef3154004692b943ef70713d48357dff</id>
<content type='text'>
Fixes #342
</content>
</entry>
<entry>
<title>client+server: implement code autoformatting using prettier and black</title>
<updated>2020-06-06T12:58:23Z</updated>
<author>
<name>Shyam Sunder</name>
<email>sgsunder1@gmail.com</email>
</author>
<published>2020-06-05T22:03:37Z</published>
<link rel='alternate' type='text/html' href='https://git.jakob.space/szurubooru.git/commit/?id=57193b57157b7a42896c887a2d5930493ac7b290'/>
<id>urn:sha1:57193b57157b7a42896c887a2d5930493ac7b290</id>
<content type='text'>
</content>
</entry>
<entry>
<title>client/js: format code to ESLint</title>
<updated>2020-06-04T23:02:33Z</updated>
<author>
<name>Shyam Sunder</name>
<email>sgsunder1@gmail.com</email>
</author>
<published>2020-06-04T18:09:35Z</published>
<link rel='alternate' type='text/html' href='https://git.jakob.space/szurubooru.git/commit/?id=4329b1620fe38c2a7bf44615cfb176daa2837590'/>
<id>urn:sha1:4329b1620fe38c2a7bf44615cfb176daa2837590</id>
<content type='text'>
</content>
</entry>
<entry>
<title>remove tags.json</title>
<updated>2017-10-01T19:48:00Z</updated>
<author>
<name>rr-</name>
<email>rr-@sakuya.pl</email>
</author>
<published>2017-10-01T19:46:53Z</published>
<link rel='alternate' type='text/html' href='https://git.jakob.space/szurubooru.git/commit/?id=1c4c5c5f91dbce7234796daddbb74923638659e7'/>
<id>urn:sha1:1c4c5c5f91dbce7234796daddbb74923638659e7</id>
<content type='text'>
</content>
</entry>
<entry>
<title>client/search: escape : in tag search</title>
<updated>2016-09-29T20:47:41Z</updated>
<author>
<name>rr-</name>
<email>rr-@sakuya.pl</email>
</author>
<published>2016-09-29T20:45:40Z</published>
<link rel='alternate' type='text/html' href='https://git.jakob.space/szurubooru.git/commit/?id=977cc47966f4b9dfddf62e53d9c614593fd29f7f'/>
<id>urn:sha1:977cc47966f4b9dfddf62e53d9c614593fd29f7f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>client/general: fix autocomplete control</title>
<updated>2016-08-23T21:14:21Z</updated>
<author>
<name>rr-</name>
<email>rr-@sakuya.pl</email>
</author>
<published>2016-08-23T21:10:05Z</published>
<link rel='alternate' type='text/html' href='https://git.jakob.space/szurubooru.git/commit/?id=f9754edccea059d133c9496bfac96add5e6f212b'/>
<id>urn:sha1:f9754edccea059d133c9496bfac96add5e6f212b</id>
<content type='text'>
Regression from d5e197e.
</content>
</entry>
<entry>
<title>client/general: add empty href for link buttons</title>
<updated>2016-08-21T23:40:30Z</updated>
<author>
<name>rr-</name>
<email>rr-@sakuya.pl</email>
</author>
<published>2016-08-21T23:25:10Z</published>
<link rel='alternate' type='text/html' href='https://git.jakob.space/szurubooru.git/commit/?id=d5e197e6ea353e1d635c33b95cd342d51c5baf76'/>
<id>urn:sha1:d5e197e6ea353e1d635c33b95cd342d51c5baf76</id>
<content type='text'>
In e464e69 I removed href='#' but I noticed that it broke some things.
Readding href serves two purposes:

- it makes links reachable with Tab key
- it makes links clickable with Enter key

The alternative to this approach was to introduce [tabindex] and [role]
attributes. But not only using tabindex=0 with &lt;a/&gt; is questionable,
it'd require adding a keyboard handler that'd intercept space and return
key presses and simulated link clicks. Since it's best to leave this
kind of thing to the native UI, I went with readding hrefs instead. I
believe that hash hrefs, even though being a common practice, are silly,
so I decided to settle down with empty hrefs.

As a bonus, I added a snippet that prevents middle mouse clicks from
opening such links/buttons in new tabs, which was the motivation for
e464e69.
</content>
</entry>
<entry>
<title>client/general: remove faux href='#' from links</title>
<updated>2016-07-30T21:12:31Z</updated>
<author>
<name>rr-</name>
<email>rr-@sakuya.pl</email>
</author>
<published>2016-07-30T19:47:56Z</published>
<link rel='alternate' type='text/html' href='https://git.jakob.space/szurubooru.git/commit/?id=e464e69b36eb615b09b59adf442a03044a8e46bd'/>
<id>urn:sha1:e464e69b36eb615b09b59adf442a03044a8e46bd</id>
<content type='text'>
</content>
</entry>
<entry>
<title>client/tags: fix hovering over autocomplete in FF</title>
<updated>2016-07-05T21:59:10Z</updated>
<author>
<name>rr-</name>
<email>rr-@sakuya.pl</email>
</author>
<published>2016-07-05T21:53:49Z</published>
<link rel='alternate' type='text/html' href='https://git.jakob.space/szurubooru.git/commit/?id=7e62751e4e04dfb895e812ecc46a8dfb9c9beb99'/>
<id>urn:sha1:7e62751e4e04dfb895e812ecc46a8dfb9c9beb99</id>
<content type='text'>
Hovering over an autocomplete box always selected the last element
rather than the element under the cursor. This is because resultIndex
was bound by reference.

This looks like a bug in FF implementation of "for (let [x, y] of ...)"
-rather than binding "x" and "y" to the scope of the loop, it's
equivalent to "for (var [x, y] of ...)", which causes nasty anomalies
for functions created inside the loop body.
</content>
</entry>
<entry>
<title>client/general: handle spaces in autocomplete</title>
<updated>2016-07-03T17:38:17Z</updated>
<author>
<name>rr-</name>
<email>rr-@sakuya.pl</email>
</author>
<published>2016-07-03T17:37:10Z</published>
<link rel='alternate' type='text/html' href='https://git.jakob.space/szurubooru.git/commit/?id=abd8e9e89c353773dddec81aed82b3b5536f621b'/>
<id>urn:sha1:abd8e9e89c353773dddec81aed82b3b5536f621b</id>
<content type='text'>
</content>
</entry>
</feed>
