Changeset 6ee5573dea45…
Parent 8b2cb5ec2691…
by
Changes to 2 files · Browse files at 6ee5573dea45 Showing diff from parent 8b2cb5ec2691 Diff from another changeset...
@@ -648,8 +648,12 @@ "^status|st|diff": (status,
[('r', 'rev', [], _('revisions to compare'))],
_('hgtk status [FILE]...')),
- "^userconfig": (userconfig, [], _('hgtk userconfig')),
- "^repoconfig": (repoconfig, [], _('hgtk repoconfig')),
+ "^userconfig": (userconfig, [],
+ [('', 'focus', '', _('field to give initial focus'))],
+ _('hgtk userconfig')),
+ "^repoconfig": (repoconfig,
+ [('', 'focus', '', _('field to give initial focus'))],
+ _('hgtk repoconfig')),
"^guess": (guess, [], _('hgtk guess')),
"^remove|rm": (revert, [], _('hgtk remove [FILE]...')),
"^rename|mv": (rename, [], _('hgtk rename SOURCE [DEST]')),
|
@@ -1121,4 +1121,7 @@ return 0
def run(ui, *pats, **opts):
- return ConfigDialog(opts.get('repomode'))
+ dlg = ConfigDialog(opts.get('repomode'))
+ if opts.get('focus', ''):
+ dlg.focus_field(opts['focus'])
+ return dlg
|
Loading...