Skip to content

Commit

Permalink
Update Pro5Chrome.py
Browse files Browse the repository at this point in the history
  • Loading branch information
hieuck committed Jul 3, 2024
1 parent 28b8248 commit fbda2cd
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Pro5Chrome.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,11 @@ def open_chrome_on_enter(event=None):
if event and event.keysym == 'Return':
open_chrome_and_add_profile()

# Hàm để xử lý khi nhấn phím Enter trên trường nhập URL
def handle_enter(event):
if event.keysym == 'Return':
open_and_save_url()

# Hàm để đăng nhập Google với profile từ Combobox
def login_google_from_combobox(event=None):
selected_profile = profile_var.get()
Expand Down Expand Up @@ -370,6 +375,9 @@ def open_and_save_url():
url_buttons_frame = ttk.Frame(root)
url_buttons_frame.pack(pady=10, fill=tk.X)

# Gắn sự kiện nhấn phím Enter vào trường nhập URL
new_url_entry.bind('<Return>', handle_enter)

# Label cho danh sách URLs
urls_label = ttk.Label(url_buttons_frame, text="Danh sách URLs:")
urls_label.pack(side=tk.LEFT, padx=5, pady=10)
Expand Down

0 comments on commit fbda2cd

Please sign in to comment.