]> git.mxchange.org Git - friendica.git/blobdiff - view/templates/item/compose-footer.tpl
Merge remote-tracking branch 'upstream/develop' into http-417
[friendica.git] / view / templates / item / compose-footer.tpl
index dc55cd9e4eb38d159129e26f32cbdb7d38328a5b..7e18d18ff7aa4743321e8f06d7fbb15f43a07a23 100644 (file)
@@ -24,7 +24,7 @@
                        var textlen = $(this).val().length;
                        $('#character-counter').text(textlen);
                });
-               $textarea.editor_autocomplete(baseurl+"/acl");
+               $textarea.editor_autocomplete(baseurl + '/search/acl');
                $textarea.bbco_autocomplete('bbcode');
 
                let $acl_allow_input = $('#acl_allow');
                                e.stopPropagation()
                        }
                });
+               // Accessibility: enable space and enter to open a panel when focused
+               $('body').on('keyup', '[data-toggle="collapse"]:focus', function (e) {
+                       if (e.key === ' ' || e.key === 'Enter') {
+                               $(this).click();
+                               e.preventDefault();
+                               e.stopPropagation();
+                       }
+               });
 
                $('#visibility-public-panel').on('show.bs.collapse', function() {
                        $('#visibility-public').prop('checked', true);
 
                $acl_allow_input.tagsinput({
                        confirmKeys: [13, 44],
-                       cancelConfirmKeysOnEmpty: true,
                        freeInput: false,
                        tagClass: function(item) {
                                switch (item.type) {