# FEATURE: Double-click on a button selects all text

**URL:** <https://forum.servoy.com/t/feature-double-click-on-a-button-selects-all-text/414>\
**Category:** Classic Servoy\
**Created:** [October 11, 2003, 9:29pm UTC](https://forum.servoy.com/t/feature-double-click-on-a-button-selects-all-text/414 "2003-10-11T21:29:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mattman](https://avatars.discourse-cdn.com/v4/letter/m/e47774/32.png) [@mattman](https://forum.servoy.com/u/mattman)\
**Post date:** [October 11, 2003, 9:29pm UTC](https://forum.servoy.com/t/feature-double-click-on-a-button-selects-all-text/414/1 "2003-10-11T21:29:22Z")

</div>

Scenario - You click on an existing button. You copy, then paste to duplicate (hint, Control-D to duplicate an object would be nice). You then double-click the button to rename it’s label and the all text is select - ready to be replaced.

Selecting all text allows you to type the new name right away. With a simple touch of either the right or left arrow key you can be at the begnning or end of the selected text. This would be faster for form design than having to hit multiple delete keystrokes or using the key combination to select all (Control-A) then delete, then type.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex010/uploads/servoy/original/1X/363c5924e316baabbea11f046f1e2f3db64fbf70.jpeg) [@system](https://forum.servoy.com/u/system)\
**Post date:** [October 16, 2003, 10:10am UTC](https://forum.servoy.com/t/feature-double-click-on-a-button-selects-all-text/414/2 "2003-10-16T10:10:46Z")

</div>

You can do this today:

1. Double click;
2. Ctrl-A (select all)

![:wink:]( "Wink")

Bob Cusick  
ClickWare

---

<div class="post-metadata">

**Author:** ![keenkenny](https://avatars.discourse-cdn.com/v4/letter/k/df788c/32.png) [@keenkenny](https://forum.servoy.com/u/keenkenny)\
**Post date:** [October 17, 2003, 6:33am UTC](https://forum.servoy.com/t/feature-double-click-on-a-button-selects-all-text/414/3 "2003-10-17T06:33:53Z")

</div>

> 1. Double click;
> 2. Ctrl-A (select all)

The above steps do not select all text of the label or button text on the Macintosh, but selects all the layout objects instead. I have found that the Cmd-A key comination on the Mac will select all the text. So if your on the Mac, use Command-A instead for step 2.

In Windows, the steps above perform as described.
