MCPcopy Create free account
hub / github.com/pgadmin-org/pgadmin4 / register_preferences

Method register_preferences

web/pgadmin/tools/erd/__init__.py:69–504  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

67 ]
68
69 def register_preferences(self):
70 self.preference.register(
71 'keyboard_shortcuts',
72 'open_project',
73 gettext('Open project'),
74 'keyboardshortcut',
75 {
76 'alt': False,
77 'shift': False,
78 'control': True,
79 'ctrl_is_meta': True,
80 'key': {
81 'key_code': 79,
82 'char': 'o'
83 }
84 },
85 category_label=PREF_LABEL_KEYBOARD_SHORTCUTS,
86 fields=shortcut_fields
87 )
88
89 self.preference.register(
90 'keyboard_shortcuts',
91 'save_project',
92 gettext('Save project'),
93 'keyboardshortcut',
94 {
95 'alt': False,
96 'shift': False,
97 'control': True,
98 'ctrl_is_meta': True,
99 'key': {
100 'key_code': 83,
101 'char': 's'
102 }
103 },
104 category_label=PREF_LABEL_KEYBOARD_SHORTCUTS,
105 fields=shortcut_fields
106 )
107
108 self.preference.register(
109 'keyboard_shortcuts',
110 'save_project_as',
111 gettext('Save project as'),
112 'keyboardshortcut',
113 {
114 'alt': False,
115 'shift': True,
116 'control': True,
117 'key': {
118 'key_code': 83,
119 'char': 's'
120 }
121 },
122 category_label=PREF_LABEL_KEYBOARD_SHORTCUTS,
123 fields=shortcut_fields
124 )
125
126 self.preference.register(

Callers

nothing calls this directly

Calls 2

gettextFunction · 0.85
registerMethod · 0.45

Tested by

no test coverage detected