Skip to content
Commit 4508a121 authored by Daniel Calviño Sánchez's avatar Daniel Calviño Sánchez
Browse files

Prevent default action from being executed when the button is disabled



When "enter" is pressed in the file picker a "click" event is triggered
on the primary action button. However, in some cases, like when the file
picker is in "Choose" mode and the current directory in the file picker
is the root folder, the primary action button is disabled. In those
cases pressing enter should not trigger a click action on the button and
be ignored instead.

Signed-off-by: default avatarDaniel Calviño Sánchez <danxuliu@gmail.com>
parent 4da9a15b
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment