diff options
author | Bibiko <bibiko@eva.mpg.de> | 2010-03-16 20:37:30 +0000 |
---|---|---|
committer | Bibiko <bibiko@eva.mpg.de> | 2010-03-16 20:37:30 +0000 |
commit | 8317097106e89ca010bee9771bd0c1f6d53754b8 (patch) | |
tree | 1f7c8b9f171154c817bdb6294018a47dd6470aa7 /Source | |
parent | dbd1ec43e05c4128a0af1ec5b51313620edb3b51 (diff) | |
download | sequelpro-8317097106e89ca010bee9771bd0c1f6d53754b8.tar.gz sequelpro-8317097106e89ca010bee9771bd0c1f6d53754b8.tar.bz2 sequelpro-8317097106e89ca010bee9771bd0c1f6d53754b8.zip |
• Connection Controller View
- set favorite table's next key view in ConnectionView to tab view (standard,socket,ssh) to allow to navigate via ⇥
- if password field of the current selected connection in the ConnectionView is empty set first responder to it since it's very likely that user wants to fill it; otherwise favorite table is first responder
Diffstat (limited to 'Source')
-rw-r--r-- | Source/SPConnectionController.m | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/Source/SPConnectionController.m b/Source/SPConnectionController.m index 956312c1..2e48106c 100644 --- a/Source/SPConnectionController.m +++ b/Source/SPConnectionController.m @@ -703,6 +703,23 @@ } [prefs setInteger:([favoritesTable selectedRow] - 1) forKey:SPLastFavoriteIndex]; + + + // Set first responder to password field if it is empty + switch([self type]) { + case SPTCPIPConnection: + if(![[standardPasswordField stringValue] length]) + [documentWindow makeFirstResponder:standardPasswordField]; + break; + case SPSocketConnection: + if(![[socketPasswordField stringValue] length]) + [documentWindow makeFirstResponder:socketPasswordField]; + break; + case SPSSHTunnelConnection: + if(![[sshPasswordField stringValue] length]) + [documentWindow makeFirstResponder:sshPasswordField]; + break; + } } /** |