Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Select all in the input panel when creating a group.

  • Loading branch information...
commit c4bdba08bad0223629a7855b8fe9df4239dbf606 1 parent 176d0a7
Phillip Koebbe phillipkoebbe authored
Showing with 4 additions and 2 deletions.
  1. +4 −2 favorite_files.py
6 favorite_files.py
View
@@ -123,13 +123,14 @@ def create_group(self, value):
self.add(self.name, value)
if repeat:
# Ask again if name was not sufficient
- self.window.show_input_panel(
+ v = self.window.show_input_panel(
"Create Group: ",
"New Group",
self.create_group,
None,
None
)
+ v.run_command("select_all")
def select_group(self, value, replace=False):
if value >= 0:
@@ -155,13 +156,14 @@ def group_answer(self, value):
self.add(self.name)
elif value == 1:
# Request new group name
- self.window.show_input_panel(
+ v = self.window.show_input_panel(
"Create Group: ",
"New Group",
self.create_group,
None,
None
)
+ v.run_command("select_all")
elif value == 2:
# "Add to Group"
self.show_groups()
Please sign in to comment.
Something went wrong with that request. Please try again.