Source code for aircontrol.hotkeys.chrome_hotkeys

import pyautogui


[docs] def close_tab(): """ Close current Chrome tab """ with pyautogui.hold("ctrl"): pyautogui.press("w")
[docs] def find_in_page(): """ Find word in web page """ with pyautogui.hold("ctrl"): pyautogui.press("f")
[docs] def new_tab(): """ Open new Chrome tab """ with pyautogui.hold("ctrl"): pyautogui.press("t")
[docs] def new_window(): """ Open new Chrome window """ with pyautogui.hold("ctrl"): pyautogui.press("n")
[docs] def to_last_tab(): """ Go to last Chrome tab """ with pyautogui.hold("ctrl"): pyautogui.press("9")