зеркало из https://github.com/mozilla/pjs.git
Fix bug 248468 (choosing directory with keyboard chooses dir and saves the
file; should just choose dir). r=neil for xpfe, r=mconnor for toolkit, sr=jag
This commit is contained in:
Родитель
20502984b4
Коммит
1b3f21704f
|
@ -479,16 +479,8 @@ function handleColumnClick(columnID) {
|
|||
function onKeypress(e) {
|
||||
if (e.keyCode == 8) /* backspace */
|
||||
goUp();
|
||||
else if (e.keyCode == 13) { /* enter */
|
||||
var fileList = treeView.selectedFiles;
|
||||
if (fileList.length > 0) {
|
||||
var file = fileList.queryElementAt(0, nsIFile);
|
||||
if (file.isDirectory()) {
|
||||
gotoDirectory(file);
|
||||
e.preventDefault();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* enter is handled by the ondialogaccept handler */
|
||||
}
|
||||
|
||||
function doEnabling() {
|
||||
|
|
|
@ -496,16 +496,8 @@ function handleColumnClick(columnID) {
|
|||
function onKeypress(e) {
|
||||
if (e.keyCode == 8) /* backspace */
|
||||
goUp();
|
||||
else if (e.keyCode == 13) { /* enter */
|
||||
var fileList = treeView.selectedFiles;
|
||||
if (fileList.length > 0) {
|
||||
var file = fileList.queryElementAt(0, nsIFile);
|
||||
if (file.isDirectory()) {
|
||||
gotoDirectory(file);
|
||||
e.preventDefault();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* enter is handled by the ondialogaccept handler */
|
||||
}
|
||||
|
||||
function doEnabling() {
|
||||
|
|
Загрузка…
Ссылка в новой задаче