Mercurial > libervia-backend
comparison sat_frontends/primitivus/keys.py @ 2624:56f94936df1e
code style reformatting using black
author | Goffi <goffi@goffi.org> |
---|---|
date | Wed, 27 Jun 2018 20:14:46 +0200 |
parents | 26edcf3a30eb |
children | 003b8b4b56a7 |
comparison
equal
deleted
inserted
replaced
2623:49533de4540b | 2624:56f94936df1e |
---|---|
21 | 21 |
22 from urwid_satext.keys import action_key_map | 22 from urwid_satext.keys import action_key_map |
23 | 23 |
24 | 24 |
25 action_key_map.update( | 25 action_key_map.update( |
26 { | 26 { |
27 # Edit bar | 27 # Edit bar |
28 ("edit", "MODE_INSERTION"): "i", | 28 ("edit", "MODE_INSERTION"): "i", |
29 ("edit", "MODE_COMMAND"): ":", | 29 ("edit", "MODE_COMMAND"): ":", |
30 ("edit", "HISTORY_PREV"): "up", | 30 ("edit", "HISTORY_PREV"): "up", |
31 ("edit", "HISTORY_NEXT"): "down", | 31 ("edit", "HISTORY_NEXT"): "down", |
32 | |
33 # global | 32 # global |
34 ("global", "MENU_HIDE"): 'meta m', | 33 ("global", "MENU_HIDE"): "meta m", |
35 ("global", "NOTIFICATION_NEXT"): 'ctrl n', | 34 ("global", "NOTIFICATION_NEXT"): "ctrl n", |
36 ("global", "OVERLAY_HIDE"): 'ctrl s', | 35 ("global", "OVERLAY_HIDE"): "ctrl s", |
37 ("global", "DEBUG"): 'ctrl d', | 36 ("global", "DEBUG"): "ctrl d", |
38 ("global", "CONTACTS_HIDE"): 'f2', | 37 ("global", "CONTACTS_HIDE"): "f2", |
39 ('global', "REFRESH_SCREEN"): "ctrl l", # ctrl l is used by Urwid to refresh screen | 38 ( |
40 | 39 "global", |
40 "REFRESH_SCREEN", | |
41 ): "ctrl l", # ctrl l is used by Urwid to refresh screen | |
41 # global menu | 42 # global menu |
42 ("menu_global", "APP_QUIT"): 'ctrl x', | 43 ("menu_global", "APP_QUIT"): "ctrl x", |
43 ("menu_global", "ROOM_JOIN"): 'meta j', | 44 ("menu_global", "ROOM_JOIN"): "meta j", |
44 | |
45 # primitivus widgets | 45 # primitivus widgets |
46 ("primitivus_widget", "DECORATION_HIDE"): "meta l", | 46 ("primitivus_widget", "DECORATION_HIDE"): "meta l", |
47 | |
48 # contact list | 47 # contact list |
49 ("contact_list", "STATUS_HIDE"): "meta s", | 48 ("contact_list", "STATUS_HIDE"): "meta s", |
50 ("contact_list", "DISCONNECTED_HIDE"): "meta d", | 49 ("contact_list", "DISCONNECTED_HIDE"): "meta d", |
51 ("contact_list", "RESOURCES_HIDE"): "meta r", | 50 ("contact_list", "RESOURCES_HIDE"): "meta r", |
52 | |
53 # chat panel | 51 # chat panel |
54 ("chat_panel", "OCCUPANTS_HIDE"): "meta p", | 52 ("chat_panel", "OCCUPANTS_HIDE"): "meta p", |
55 ("chat_panel", "TIMESTAMP_HIDE"): "meta t", | 53 ("chat_panel", "TIMESTAMP_HIDE"): "meta t", |
56 ("chat_panel", "SHORT_NICKNAME"): "meta n", | 54 ("chat_panel", "SHORT_NICKNAME"): "meta n", |
57 ("chat_panel", "SUBJECT_SWITCH"): "meta s", | 55 ("chat_panel", "SUBJECT_SWITCH"): "meta s", |
58 ("chat_panel", "GOTO_BOTTOM"): "G", | 56 ("chat_panel", "GOTO_BOTTOM"): "G", |
59 | 57 # card game |
60 #card game | 58 ("card_game", "CARD_SELECT"): " ", |
61 ("card_game", "CARD_SELECT"): ' ', | 59 # focus |
62 | |
63 #focus | |
64 ("focus", "FOCUS_EXTRA"): "ctrl f", | 60 ("focus", "FOCUS_EXTRA"): "ctrl f", |
65 }) | 61 } |
62 ) | |
66 | 63 |
67 | 64 |
68 action_key_map.set_close_namespaces(tuple(), ('global', 'focus', 'menu_global')) | 65 action_key_map.set_close_namespaces(tuple(), ("global", "focus", "menu_global")) |
69 action_key_map.check_namespaces() | 66 action_key_map.check_namespaces() |