aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorelijahe2013-11-21 16:20:27 (EST)
committerSilenio Quarti2013-11-22 11:16:11 (EST)
commit5f2744fca748a4f4555d56953cc920c7937ca07c (patch)
treeb5264b575c4acfd4e524909558d75681d0a30e65
parent86c740ead607e9ed57cfd991938e1611a04afe7e (diff)
downloadorg.eclipse.orion.client-5f2744fca748a4f4555d56953cc920c7937ca07c.zip
org.eclipse.orion.client-5f2744fca748a4f4555d56953cc920c7937ca07c.tar.gz
org.eclipse.orion.client-5f2744fca748a4f4555d56953cc920c7937ca07c.tar.bz2
Bug 394861 - outliner should provide filtering
- Minor fix to prevent the outline view from being scrolled down when the DOWN key is used to jump from the Filter input into the outline. --Signed-off-by: Elijah El-Haddad <elijahe@ca.ibm.com>
-rw-r--r--bundles/org.eclipse.orion.client.ui/web/orion/outliner.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/bundles/org.eclipse.orion.client.ui/web/orion/outliner.js b/bundles/org.eclipse.orion.client.ui/web/orion/outliner.js
index 6b772bb..4f094a3 100644
--- a/bundles/org.eclipse.orion.client.ui/web/orion/outliner.js
+++ b/bundles/org.eclipse.orion.client.ui/web/orion/outliner.js
@@ -375,6 +375,12 @@ define([
navHandler.iterate(true, false, false, true);
}
}
+
+ //prevent the browser's default behavior of automatically scrolling
+ //the outline view down because the DOWN key was pressed
+ if (e.preventDefault) {
+ e.preventDefault();
+ }
}
}.bind(this), false);