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:
bzbarsky%mit.edu 2004-07-15 06:13:35 +00:00
Родитель 20502984b4
Коммит 1b3f21704f
2 изменённых файлов: 4 добавлений и 20 удалений

Просмотреть файл

@ -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() {