diff options
author | Christopher Ng <chrng8@gmail.com> | 2022-06-08 23:55:51 +0000 |
---|---|---|
committer | Christopher Ng <chrng8@gmail.com> | 2022-06-09 00:25:13 +0000 |
commit | 0ea95c3ff603d439ed7129a775d539cc96840a2c (patch) | |
tree | 41fcaa0311e8aac5708ab2ca9a5f4da9465e4a92 /core/src/OC | |
parent | 343eab4c969ebb6a2540e6a1ca5442d370bf6d39 (diff) | |
download | nextcloud-server-0ea95c3ff603d439ed7129a775d539cc96840a2c.tar.gz nextcloud-server-0ea95c3ff603d439ed7129a775d539cc96840a2c.zip |
Rename a11y helper function
Signed-off-by: Christopher Ng <chrng8@gmail.com>
Diffstat (limited to 'core/src/OC')
-rw-r--r-- | core/src/OC/dialogs.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/core/src/OC/dialogs.js b/core/src/OC/dialogs.js index 2a3e7d063e4..2ca4bbf73f9 100644 --- a/core/src/OC/dialogs.js +++ b/core/src/OC/dialogs.js @@ -49,7 +49,7 @@ import $ from 'jquery' import OC from './index' import OCA from '../OCA/index' -import { isA11yClick } from '../Util/a11y' +import { isA11yActivation } from '../Util/a11y' /** * this class to ease the usage of jquery dialogs @@ -313,7 +313,7 @@ const Dialogs = { self.$showGridView = $('button#picker-showgridview') self.$showGridView.on('click keydown', function(event) { - if (isA11yClick(event)) { + if (isA11yActivation(event)) { self._onGridviewChange() } }) @@ -353,7 +353,7 @@ const Dialogs = { var $input = $form.find('input[type=\'text\']') var $submit = $form.find('input[type=\'submit\']') $input.on('keydown', function(event) { - if (isA11yClick(event)) { + if (isA11yActivation(event)) { event.stopImmediatePropagation() event.preventDefault() $form.submit() @@ -445,17 +445,17 @@ const Dialogs = { self.$filelistContainer = self.$filePicker.find('.filelist-container') self.$dirTree = self.$filePicker.find('.dirtree') self.$dirTree.on('click keydown', 'div:not(:last-child)', self, function(event) { - if (isA11yClick(event)) { + if (isA11yActivation(event)) { self._handleTreeListSelect(event, type) } }) self.$filelist.on('click keydown', 'tr', function(event) { - if (isA11yClick(event)) { + if (isA11yActivation(event)) { self._handlePickerClick(event, $(this), type) } }) self.$fileListHeader.on('click keydown', 'a', function(event) { - if (isA11yClick(event)) { + if (isA11yActivation(event)) { var dir = self.$filePicker.data('path') self.filepicker.sortField = $(event.currentTarget).data('sort') self.filepicker.sortOrder = self.filepicker.sortOrder === 'asc' ? 'desc' : 'asc' |