mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
productivity for hor scrolling
This commit is contained in:
+2
@@ -15,6 +15,7 @@
|
||||
*/
|
||||
package com.intellij.openapi.keymap.impl;
|
||||
|
||||
import com.intellij.featureStatistics.FeatureUsageTracker;
|
||||
import com.intellij.ide.DataManager;
|
||||
import com.intellij.openapi.actionSystem.*;
|
||||
import com.intellij.openapi.actionSystem.ex.ActionManagerEx;
|
||||
@@ -187,6 +188,7 @@ public final class IdeMouseEventDispatcher {
|
||||
}
|
||||
|
||||
private static boolean doHorizontalScrolling(Component c, MouseWheelEvent me) {
|
||||
FeatureUsageTracker.getInstance().triggerFeatureUsed("ui.horizontal.scrolling");
|
||||
final JScrollBar scrollBar = findHorizontalScrollBar(c);
|
||||
if (scrollBar != null) {
|
||||
scrollBar.setValue(scrollBar.getValue() + getScrollAmount(c, me, scrollBar));
|
||||
|
||||
@@ -77,6 +77,7 @@ refactoring.rename=Rename
|
||||
refactoring.copyClass=Copy Class refactoring
|
||||
ui.tree.speedsearch=Speed search in trees
|
||||
ui.scheme.quickswitch=Quick switch scheme
|
||||
ui.horizontal.scrolling=Horizontal Scrolling
|
||||
|
||||
# suppress inspection "UnusedProperty"
|
||||
ui.recentchanges=Recent changes
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
<html>
|
||||
<body style="font-family: Verdana; font-size: 13;" LEFTMARGIN="25" TOPMARGIN="25">
|
||||
<table cellpadding="15" width="98%" border="0">
|
||||
<tr>
|
||||
<td>Enable Horizontal Scrolling with mouse wheel by holding <font style="font-family: Verdana; font-weight:bold; size=4; color=#993300;">SHIFT</font> button</td>
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
@@ -414,6 +414,13 @@
|
||||
successive-show="5"
|
||||
min-usage-count="1"
|
||||
/>
|
||||
<feature
|
||||
id="ui.horizontal.scrolling"
|
||||
tip-file="HorizontalScrolling.html"
|
||||
first-show="1"
|
||||
successive-show="1"
|
||||
min-usage-count="1"
|
||||
/>
|
||||
<!-- TODO: Uncomment usage in InsertPathAction when FeatureUsageTracker goes to OpenApi
|
||||
<feature
|
||||
id="ui.commandLine.insertPath"
|
||||
|
||||
Reference in New Issue
Block a user