An electronic device according to various embodiments of the present disclosure may include: a first cover including one or more first sensing regions, and a processor configured to determine whether the first cover is in an open position, detect a first gesture on the one or more first sensing regions, and execute a function corresponding to the first gesture when the first cover is in the open position.