Abstract:
A method for controlling a virtual keyboard of an electronic device is provided. The method includes inputting text, displaying the virtual keyboard, receiving a first touch input signal that is created by touching a text delete function key included in the displayed virtual keyboard, receiving a second touch input signal that is created by dragging the text delete function key while the touch on the text delete function key is maintained, configuring a speed for deleting the text, based on the second touch input signal, and deleting the text at the configured speed, based on the second touch input signal.