Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions BrowserRefresh.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,3 +79,6 @@ def run(self, args, activate=True,

if 'palemoon' in browsers and _os == 'Windows':
refresher.palemoon()

if 'brave' in browsers and _os == 'Windows':
refresher.brave()
3 changes: 3 additions & 0 deletions linux/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ def ie(self):
pass
# except NotImplemented("IE support not implemented yet.")

def brave(self):
self.SendKeysToAllWindows('brave-browser', 'F5')

def SendKeysToAllWindows(self, cls, key):
"Sends the keystroke to all windows whose title matches the regex"

Expand Down
6 changes: 6 additions & 0 deletions win/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,12 @@ def ie(self):
except WindowNotFoundError:
pass

def brave(self):
try:
self.SendKeysToAllWindows('.*Brave')
except WindowNotFoundError:
pass

def SendKeysToAllWindows(self, title_regex):
"Sends the keystroke to all windows whose title matches the regex"

Expand Down