From 879431e76b57db9d7efbe993c1edd11d712d2747 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Sun, 21 Nov 2004 13:39:54 +0000 Subject: Fixed behaviour of return key in the file browser svn-id: r15852 --- gui/browser.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gui') diff --git a/gui/browser.cpp b/gui/browser.cpp index 5755f1fe18..1388aabf87 100644 --- a/gui/browser.cpp +++ b/gui/browser.cpp @@ -140,6 +140,7 @@ BrowserDialog::BrowserDialog(const char *title) // Add file list _fileList = new ListWidget(this, 10, 34, _w - 2 * 10, _h - 34 - 24 - 10); _fileList->setNumberingMode(kListNumberingOff); + _fileList->setEditable(false); // Buttons addButton(10, _h - 24, "Go up", kGoUpCmd, 0); @@ -180,6 +181,7 @@ void BrowserDialog::handleCommand(CommandSender *sender, uint32 cmd, uint32 data _node = _node.getParent(); updateListing(); break; + case kListItemActivatedCmd: case kListItemDoubleClickedCmd: _node = _nodeContent[data]; updateListing(); -- cgit v1.2.3