mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-08-15 08:53:07 +09:00
[widget] Require user interaction when picking files or folders v2
Now with extra sauce to make it work cross-platform and cross-versions and for HTML input elements only.
This commit is contained in:
parent
62df9eb775
commit
d867f26c0e
9 changed files with 34 additions and 9 deletions
|
|
@ -866,7 +866,7 @@ HTMLInputElement::InitFilePicker(FilePickerType aType)
|
|||
mode = static_cast<int16_t>(nsIFilePicker::modeOpen);
|
||||
}
|
||||
|
||||
nsresult rv = filePicker->Init(win, title, mode);
|
||||
nsresult rv = filePicker->Init(win, title, mode, /*aRequireInteraction = */ true);
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
|
||||
if (!okButtonLabel.IsEmpty()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue