Skip to content

Commit

Permalink
Disable mouse support by default
Browse files Browse the repository at this point in the history
  • Loading branch information
wustho committed Jul 8, 2021
1 parent 6472e76 commit b43ef4c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@ Although, there are not many stuffs to configure.

# Using Mouse

Pretty useful when running `epy` on Termux Android.
Although mouse support is useful when running `epy` on Termux Android, it’s disabled by default
since most people find it intrusive when using `epy` in desktop.
But you can enable it by setting `MouseSupport` to `true` in config file.

| Key | Action |
| --- | --- |
Expand Down
6 changes: 4 additions & 2 deletions epy.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"""


__version__ = "2021.4.7"
__version__ = "2021.7.8"
__license__ = "GPL-3.0"
__author__ = "Benawi Adha"
__email__ = "benawiadha@gmail.com"
Expand Down Expand Up @@ -59,6 +59,7 @@
"DictionaryClient": "auto",
"ShowProgressIndicator": True,
"PageScrollAnimation": True,
"MouseSupport": False,
"StartWithDoubleSpread": False,
"TTSSpeed": 1,
"DarkColorFG": 252,
Expand Down Expand Up @@ -2112,7 +2113,8 @@ def preread(stdscr, file):

SCREEN.keypad(True)
safe_curs_set(0)
curses.mousemask(-1)
if CFG["MouseSupport"]:
curses.mousemask(-1)
# curses.mouseinterval(0)
SCREEN.clear()
_, cols = SCREEN.getmaxyx()
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

setup(
name="epy-reader",
version="2021.4.7",
version="2021.7.8",
description="Terminal/CLI Ebook (epub, fb2, mobi, azw3) Reader",
long_description=long_description,
long_description_content_type="text/markdown",
Expand Down

0 comments on commit b43ef4c

Please sign in to comment.