|
|
|
|
@ -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' |
|
|
|
|
|