Sublime Forum

show_quick_panel

#1

Hi,

Using the show_quick_panel method on Window is it possible to register when
the user just hits enter with no specific item in mind? I can see that goto anything
currently does this to allow you to switch between the two most recent files.

/Mads

0 Likes

#2

To replicate this you just presort the list of items before passing to show_quick_panel.

Despite not having any visual indication the first item is implicitly selected.

So, enter without prior input just selects the first item in the list AFAIK.

0 Likes

#3

Yes, this works like a charm, thanks.

0 Likes