mirror of
https://github.com/markqvist/NomadNet.git
synced 2026-11-29 11:26:31 -05:00
make clipboard copy an opt-in feature
This commit is contained in:
parent
475c0ee2a0
commit
e492cfbce0
4 changed files with 39 additions and 17 deletions
|
|
@ -16,7 +16,11 @@ class NetworkDisplayShortcuts():
|
|||
self.app = app
|
||||
g = app.ui.glyphs
|
||||
|
||||
self.widget = urwid.AttrMap(urwid.Text("[C-l] Nodes/Announces [C-x] Remove [C-w] Disconnect [C-d] Back [C-f] Forward [C-r] Reload [C-u] URL [C-y] Copy [C-g] Fullscreen [C-s / C-b] Save Node"), "shortcutbar")
|
||||
shortcut_text = "[C-l] Nodes/Announces [C-x] Remove [C-w] Disconnect [C-d] Back [C-f] Forward [C-r] Reload [C-u] URL "
|
||||
if app.config["textui"]["clipboard_copy"]:
|
||||
shortcut_text += "[C-y] Copy "
|
||||
shortcut_text += "[C-g] Fullscreen [C-s / C-b] Save Node"
|
||||
self.widget = urwid.AttrMap(urwid.Text(shortcut_text), "shortcutbar")
|
||||
|
||||
class DialogLineBox(urwid.LineBox):
|
||||
def keypress(self, size, key):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue