Skip to content

Commit

Permalink
Allow passwords in SpRequestDialog, Fixes pharo-spec#1705
Browse files Browse the repository at this point in the history
Small addition to allow a password SpRequestDialog. Add and forward `bePassword`, `beText` and `isPassword` to the text input
  • Loading branch information
terpon committed Jan 18, 2025
1 parent b77e044 commit 4e693df
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/Spec2-Dialogs/SpRequestDialog.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,18 @@ SpRequestDialog >> accept [
super accept
]

{ #category : 'api' }
SpRequestDialog >> bePassword [

textInput bePassword
]

{ #category : 'api' }
SpRequestDialog >> beText [

textInput beText
]

{ #category : 'initialization' }
SpRequestDialog >> connectPresenters [

Expand Down Expand Up @@ -147,6 +159,12 @@ SpRequestDialog >> initializeWindow: aWindowPresenter [
aWindowPresenter whenOpenedDo: [ textInput takeKeyboardFocus; selectAll ]
]

{ #category : 'testing' }
SpRequestDialog >> isPassword [

^ textInput isPassword
]

{ #category : 'api - showing' }
SpRequestDialog >> openModal [
| dialog |
Expand Down

0 comments on commit 4e693df

Please sign in to comment.