File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 41
41
input . on ( 'autocomplete:updated' , resetScroll . bind ( autocomplete . getWrapper ( ) . firstChild ) )
42
42
typeahead . dropdown . _ensureVisible = ensureVisible
43
43
if ( filterInput ) filterInput . addEventListener ( 'change' , toggleFilter . bind ( typeahead ) )
44
- monitorCtrlKey ( input , typeahead . dropdown . $menu )
44
+ monitorCtrlKey ( input , typeahead . dropdown )
45
45
searchField . addEventListener ( 'click' , confineEvent )
46
46
document . documentElement . addEventListener ( 'click' , resetSearch . bind ( autocomplete ) )
47
47
document . addEventListener ( 'keydown' , handleShortcuts . bind ( input ) )
103
103
104
104
function monitorCtrlKey ( input , dropdown ) {
105
105
input . on ( 'keydown' , onCtrlKeyDown . bind ( dropdown ) )
106
- dropdown . on ( 'keyup' , onCtrlKeyUp . bind ( input ) )
106
+ dropdown . $container . on ( 'keyup' , onCtrlKeyUp . bind ( input ) )
107
107
}
108
108
109
109
function onCtrlKeyDown ( e ) {
110
- if ( e . keyCode === CTRL_KEY ) this . find ( '.ds-cursor a' ) . focus ( )
110
+ if ( e . keyCode === CTRL_KEY ) this . getCurrentCursor ( ) . find ( 'a' ) . focus ( )
111
111
}
112
112
113
113
function onCtrlKeyUp ( e ) {
You can’t perform that action at this time.
0 commit comments