-
Notifications
You must be signed in to change notification settings - Fork 16.6k
Closed as not planned
Closed as not planned
Copy link
Labels
37-x-ybug 🪲component/dialoghas-repro-commentIssue has repro in commentsIssue has repro in commentsplatform/windows
Description
Preflight Checklist
- I have read the Contributing Guidelines for this project.
- I agree to follow the Code of Conduct that this project adheres to.
- I have searched the issue tracker for a bug report that matches the one I want to file, without success.
Electron Version
37.4.0
What operating system(s) are you using?
Windows
Operating System Version
Windows 11
What arch are you using?
arm64 (including Apple Silicon)
Last Known Working Electron version
No response
Does the issue also appear in Chromium / Google Chrome?
I don't know how to test
Expected Behavior
A file dialog is keyboard accessible:
Ctrl+Nfocuses to the input fieldAltkey can be pressed to jump to the buttons.
Actual Behavior
No keyboard accessibility.
Testcase Gist URL
No response
Additional Information
Fiddle to reproduce:
// Display native system dialogs for opening and saving files, alerting, etc.
//
// For more info, see:
// https://electronjs.org/docs/api/dialog
const { app, BrowserWindow, dialog } = require('electron/main')
app.whenReady().then(async () => {
const mainWindow = new BrowserWindow({ height: 600, width: 600 })
// Show an "Open File" dialog and attempt to open
// the chosen file in our window.
try {
const { filePaths, canceled } = await dialog.showOpenDialog(mainWindow, {
properties: [ 'multiSelections', 'openDirectory', 'createDirectory' ]
})
if (canceled) {
console.log('Dialog was canceled')
} else {
const file = filePaths[0]
mainWindow.loadFile(file)
}
} catch (err) {
console.log(err)
}
})
//cc @codebytere
Metadata
Metadata
Assignees
Labels
37-x-ybug 🪲component/dialoghas-repro-commentIssue has repro in commentsIssue has repro in commentsplatform/windows