Reenabled tababale key selection also fixing first responder issue when closing password generator popover (fixes #896)

This commit is contained in:
Michael Starke
2019-04-01 12:47:29 +02:00
parent 43508ad3a5
commit 878cef88c5
2 changed files with 10 additions and 7 deletions

View File

@@ -25,7 +25,7 @@
<rect key="frame" x="0.0" y="0.0" width="508" height="392"/>
<subviews>
<button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="2">
<rect key="frame" x="309" y="105" width="83" height="32"/>
<rect key="frame" x="310" y="105" width="83" height="32"/>
<buttonCell key="cell" type="push" title="Unlock" bezelStyle="rounded" alignment="center" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="3">
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
<font key="font" metaFont="system"/>
@@ -85,14 +85,14 @@ DQ
</connections>
</secureTextField>
<button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="408">
<rect key="frame" x="357.5" y="185" width="29" height="23"/>
<rect key="frame" x="358" y="185" width="29" height="23"/>
<buttonCell key="cell" type="roundTextured" bezelStyle="texturedRounded" image="NSQuickLookTemplate" imagePosition="only" alignment="center" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="409">
<behavior key="behavior" pushIn="YES" changeContents="YES" lightByContents="YES"/>
<font key="font" metaFont="system"/>
</buttonCell>
</button>
<button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="486">
<rect key="frame" x="357.5" y="152" width="29" height="23"/>
<rect key="frame" x="358" y="152" width="29" height="23"/>
<buttonCell key="cell" type="roundTextured" bezelStyle="texturedRounded" image="NSStopProgressTemplate" imagePosition="only" alignment="center" state="on" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="487">
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
<font key="font" metaFont="system"/>
@@ -109,7 +109,7 @@ DQ
</buttonCell>
</button>
<button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="2pb-ZG-spA">
<rect key="frame" x="227" y="105" width="82" height="32"/>
<rect key="frame" x="228" y="105" width="82" height="32"/>
<buttonCell key="cell" type="push" title="Cancel" bezelStyle="rounded" alignment="center" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="erj-mR-UyO">
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
<font key="font" metaFont="system"/>

View File

@@ -10,14 +10,17 @@
@implementation MPPathControl
/*- (BOOL)canBecomeKeyView {
- (BOOL)canBecomeKeyView {
return YES;
}
- (BOOL)acceptsFirstResponder {
return YES;
/*
documentation state YES is required when canBecomeKeyView is YES but setting to YES
causes NSWindow to use this as first responder when closing the password generator popover
*/
return NO;
}
*/
- (instancetype)initWithFrame:(NSRect)frameRect {
self = [super initWithFrame:frameRect];