mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
MDL-71813 filepicker: view file not available using keyboard (Enter)
This commit is contained in:
parent
30b8ad51f4
commit
ffb403d9b5
1 changed files with 6 additions and 0 deletions
|
@ -290,6 +290,12 @@ YUI.add('moodle-core_filepicker', function(Y) {
|
|||
Y.bind(callback, options.callbackcontext)(e, e.node.fileinfo);
|
||||
Y.YUI2.util.Event.stopEvent(e.event)
|
||||
});
|
||||
// Simulate click on file not folder.
|
||||
scope.treeview.subscribe('enterKeyPressed', function(node) {
|
||||
if (node.children.length === 0) {
|
||||
Y.one(node.getContentEl()).one('a').simulate('click');
|
||||
}
|
||||
});
|
||||
// TODO MDL-32736 support right click
|
||||
/*if (options.rightclickcallback) {
|
||||
scope.treeview.subscribe('dblClickEvent', function(e){
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue