nextcloud/core
Daniel Calviño Sánchez 10a4f8e45e Confirm a share also by pressing enter on the input field
Besides confirming a share by clicking on the confirm button now it is
possible to do it by pressing enter on the input field.

Clicking on the confirm button implicitly hides the autocomplete
dropdown. On the other hand, pressing enter on the input field does not,
so the autocompletion must be disabled and closed when the confirmation
begins and then enabled again once it finishes. Otherwise the
autocomplete dropdown would be visible and it would be possible to
interact with it while the share is being confirmed.

The order in which the input field and the autompletion are disabled is
important. Internally, the autocompletion sets a timeout when the input
field is modified that requests the suggestions to the server and then
shows them in the dropdown. That timeout is not cancelled when the
autocompletion is disabled, but when the input field loses its focus and
the autocompletion is not disabled. Therefore, the input field has to be
disabled (which causes it to lose the focus) before the autocompletion
is disabled. Otherwise it could happen that while a share is being
confirmed the timeout ends, so an autocompletion request is sent and
then, once the share is successfully confirmed and thus the
autocompletion is enabled again, the request is received and the
autocomplete dropdown is shown with the old suggestions. Strange, but
possible nevertheless ;-)

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-03-20 19:09:05 +01:00
..
Command s/ownCloud/Nextcloud 2018-03-01 17:49:53 +01:00
Controller Move search to proper Controller 2018-03-09 14:36:48 +01:00
Middleware Update license headers 2017-11-06 16:56:19 +01:00
Migrations Do not cache the settings/sections in the database anymore 2018-01-29 15:47:37 +01:00
ajax Merge pull request #7918 from nextcloud/properly-log-exceptions 2018-01-23 11:56:02 +01:00
css Add min width of two icons to the app menu 2018-03-19 17:12:59 +01:00
doc changed to nextcloud 2016-06-22 08:20:23 +02:00
fonts Add TTF of OpenSand-{Ligh,Semibold} 2018-02-19 12:34:49 +01:00
img Improved inline confirm icon with opacity and fixed ext share loading state 2018-03-07 13:17:37 +01:00
js Confirm a share also by pressing enter on the input field 2018-03-20 19:09:05 +01:00
l10n [tx-robot] updated from transifex 2018-03-20 01:11:33 +00:00
search Move search to proper Controller 2018-03-09 14:36:48 +01:00
skeleton ownCloud -> Nextcloud 2016-07-28 15:47:04 +02:00
templates Remove "Alternative logins" title on login page 2018-03-14 11:38:57 +01:00
vendor Update core.js 2018-01-29 16:58:03 +01:00
Application.php Update license headers 2017-11-06 16:56:19 +01:00
register_command.php Validate the info.xml against the appstore schema file 2018-02-16 10:23:51 +01:00
routes.php Move search to proper Controller 2018-03-09 14:36:48 +01:00
shipped.json Add missing version requirement to OAuth2 app 2017-05-22 09:56:49 +02:00
strings.php Update with robin 2016-07-21 18:13:58 +02:00