Added support for double-click behavior as described in issue #14