(e: KeyboardEvent)
| 312 | }; |
| 313 | |
| 314 | let end = (e: KeyboardEvent) => { |
| 315 | if (delegate.getLastKey) { |
| 316 | if (manager.focusedKey === null && e.shiftKey) { |
| 317 | return false; |
| 318 | } |
| 319 | let lastKey = delegate.getLastKey(manager.focusedKey, isCtrlKeyPressed(e)); |
| 320 | manager.setFocusedKey(lastKey); |
| 321 | if (lastKey != null) { |
| 322 | if (isCtrlKeyPressed(e) && e.shiftKey && manager.selectionMode === 'multiple') { |
| 323 | manager.extendSelection(lastKey); |
| 324 | return; |
| 325 | } else if (selectOnFocus) { |
| 326 | manager.replaceSelection(lastKey); |
| 327 | return; |
| 328 | } |
| 329 | } |
| 330 | return; |
| 331 | } |
| 332 | return false; |
| 333 | }; |
| 334 | |
| 335 | let pageDown = (e: KeyboardEvent) => { |
| 336 | if (delegate.getKeyPageBelow && manager.focusedKey != null) { |
no test coverage detected