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), |