A portable electronic device includes a main section with electronic
circuitry. A detachable flipping section is foldably mounted around an
axis of rotation relative to said main section such that the flipping
section can be folded in a first position. The flipping section is
detachable and reattachable. A locking mechanism is provided with a
resilient member, the resilient member being configured such that it
orients, by action of the resilience of said member, the flipping section
in a second position, the locking mechanism being further configured to
prevent the flipping section from being detached from the main section
within a position range comprising the second position.