Sublime Forum

View.show_popup doesn't work on the first character of a widget

#1

I’ve noticed that, for some reason, view.show_popup doesn’t work when the caret is at position 0 in a widget.

examples of widgets:

  • an input panel e.g. window.show_input_panel('test', 'placeholder text', None, None, None)
  • the console input
  • the find panel etc.

for example, using the built in show_scope_name command, bound to ctrl+alt+shift+p by default on Windows - nothing happens if you press Home first in one of the aforementioned widgets, but it starts working after you move to position 1 etc. by pressing and then running the show_scope_name command.

setting view.settings().set('is_widget', False) seems to make no difference

0 Likes

#2

How did you found that out? What were you trying to do?

0 Likes

#3

I was trying to see the scope of the first character in an input panel

0 Likes

#4

logged here:

1 Like