This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

View | Details | Raw Unified | Return to bug 219371
Collapse All | Expand All

(-)a/editor/src/org/netbeans/modules/editor/impl/actions/ClipboardHistoryAction.java (-2 / +2 lines)
Lines 48-58 Link Here
48
import org.netbeans.modules.editor.impl.actions.clipboardhistory.CompletionLayoutPopup;
48
import org.netbeans.modules.editor.impl.actions.clipboardhistory.CompletionLayoutPopup;
49
49
50
@EditorActionRegistration(
50
@EditorActionRegistration(
51
        name = "clipboard-history",
51
        name = ClipboardHistoryAction.NAME,
52
        menuPath = "Edit",
52
        menuPath = "Edit",
53
        menuPosition = 1350)
53
        menuPosition = 1350)
54
public final class ClipboardHistoryAction extends AbstractEditorAction {
54
public final class ClipboardHistoryAction extends AbstractEditorAction {
55
55
    public static final String NAME = "clipboard-history";
56
    private static final long serialVersionUID = 1L;
56
    private static final long serialVersionUID = 1L;
57
57
58
    @Override
58
    @Override
(-)a/editor/src/org/netbeans/modules/editor/impl/actions/clipboardhistory/ScrollCompletionPane.java (+9 lines)
Lines 47-52 Link Here
47
47
48
import java.awt.Color;
48
import java.awt.Color;
49
import java.awt.Dimension;
49
import java.awt.Dimension;
50
import java.awt.event.InputEvent;
50
import java.awt.event.KeyEvent;
51
import java.awt.event.KeyEvent;
51
import java.awt.event.MouseListener;
52
import java.awt.event.MouseListener;
52
53
Lines 63-68 Link Here
63
import org.netbeans.api.editor.mimelookup.MimeLookup;
64
import org.netbeans.api.editor.mimelookup.MimeLookup;
64
import org.netbeans.api.editor.settings.SimpleValueNames;
65
import org.netbeans.api.editor.settings.SimpleValueNames;
65
import org.netbeans.editor.BaseKit;
66
import org.netbeans.editor.BaseKit;
67
import org.netbeans.modules.editor.impl.actions.ClipboardHistoryAction;
66
68
67
/**
69
/**
68
* Pane displaying the completion view and accompanying components
70
* Pane displaying the completion view and accompanying components
Lines 246-251 Link Here
246
        BaseKit.downAction
248
        BaseKit.downAction
247
        );
249
        );
248
250
251
        // Register down key for clipboard history shortcut
252
        KeyStroke defaultKeystroke = KeyStroke.getKeyStroke(KeyEvent.VK_D, InputEvent.CTRL_DOWN_MASK | InputEvent.SHIFT_DOWN_MASK);
253
        KeyStroke[] findEditorKeys = findEditorKeys(component, ClipboardHistoryAction.NAME, defaultKeystroke);
254
        for (KeyStroke ks : findEditorKeys) {
255
            getInputMap().put(ks, COMPLETION_DOWN);
256
        }
257
249
        // Register PgDn key
258
        // Register PgDn key
250
        registerKeybinding(component, ACTION_COMPLETION_PGDN, COMPLETION_PGDN,
259
        registerKeybinding(component, ACTION_COMPLETION_PGDN, COMPLETION_PGDN,
251
        KeyStroke.getKeyStroke(KeyEvent.VK_PAGE_DOWN, 0),
260
        KeyStroke.getKeyStroke(KeyEvent.VK_PAGE_DOWN, 0),

Return to bug 219371