diff options
author | 2022-11-01 12:40:46 +0530 | |
---|---|---|
committer | 2022-11-01 07:10:46 +0000 | |
commit | f39ea6dad6271972e35c819f79a1068412b51633 (patch) | |
tree | a0566551f72d36c0284282bbccbadaa5a1e74636 /src/features/webControls/components | |
parent | Update node modules (#727) (diff) | |
download | ferdium-app-f39ea6dad6271972e35c819f79a1068412b51633.tar.gz ferdium-app-f39ea6dad6271972e35c819f79a1068412b51633.tar.zst ferdium-app-f39ea6dad6271972e35c819f79a1068412b51633.zip |
Re-enable editing of the address bar to manually access a different url within the context of the current service (#728)
Diffstat (limited to 'src/features/webControls/components')
-rw-r--r-- | src/features/webControls/components/WebControls.tsx | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/features/webControls/components/WebControls.tsx b/src/features/webControls/components/WebControls.tsx index ebcd93c9e..51bf7e541 100644 --- a/src/features/webControls/components/WebControls.tsx +++ b/src/features/webControls/components/WebControls.tsx | |||
@@ -210,15 +210,19 @@ class WebControls extends Component<IProps, IState> { | |||
210 | editUrl: false, | 210 | editUrl: false, |
211 | }); | 211 | }); |
212 | navigate(inputUrl); | 212 | navigate(inputUrl); |
213 | |||
214 | if (this.inputRef && this.inputRef.current) { | ||
215 | this.inputRef.current.blur(); | ||
216 | } | ||
213 | } else if (event.key === 'Escape') { | 217 | } else if (event.key === 'Escape') { |
214 | this.setState({ | 218 | this.setState({ |
215 | editUrl: false, | 219 | editUrl: false, |
216 | inputUrl: url, | 220 | inputUrl: url, |
217 | }); | 221 | }); |
218 | } | ||
219 | 222 | ||
220 | if (this.inputRef && this.inputRef.current) { | 223 | if (this.inputRef && this.inputRef.current) { |
221 | this.inputRef.current.blur(); | 224 | this.inputRef.current.blur(); |
225 | } | ||
222 | } | 226 | } |
223 | }} | 227 | }} |
224 | ref={this.inputRef} | 228 | ref={this.inputRef} |