0 like 0 dislike
20 views
in Computer Science by (1.0m points)
Define deleting. Write the method to delete the text.

1 Answer

0 like 0 dislike
by (1.0m points)

The delete key is a key on most computer keyboards which typically is used to delete either (in text mode) the character ahead of or beneath the cursor, or (in GUI mode) the currently-selected object. The key is sometimes referred to as the "forward delete" key. This is because the backspace key also deletes characters, but to the left of the cursor. On many keyboards, such as most Apple keyboards, the key with the backspace function is also labelled "delete".

Position and labelling on keyboards

The key appears on English-language IBM-compatible PC keyboards labeled as Delete or Del, sometimes accompanied by a crossed-out right-arrow symbol.[1][2] However, sometimes the key labelled Delete performs the Backspace function instead, for example on some Apple keyboards.[3]

In other cases, the Delete key is in its original IBM notebook position of above and to the right of the Backspace key. Many laptops add rows of smaller keys above the Function key line to add keys on a non-standard size keyboard. On this row of smaller keys, the position of the Delete key is positioned at or near the right-hand end. On Apple's line of laptops (e.g. the MacBook and MacBook Pro), the forward delete function can be achieved using the Fn+← Backspace key combination.

The Delete key is typically smaller and less-conveniently located than the Backspace key, and on keyboards where space is limited, for example those omitting the numeric keypad or virtual keyboards on mobile devices, it is often omitted altogether.

On some compact keyboards (for example, the 60-key Happy Hacking Keyboard), the Delete key replaces the conventional Backspace key, and the Backspace function is achieved by holding the Fn key and pressing Delete.

Uses

When struck on a computer keyboard during text or command editing, the delete key (Delete or Del), known less ambiguously as forward delete, discards the character ahead of the cursor's position, moving all following characters one position "back" towards the freed letterspace. The key is also used by many GUI applications to request deletion of the currently-selected object, for example a file in a file browser or a block of text in a word processor.

The delete key often works as a generic command to remove a selected object, such as an image embedded in a document (on Apple Keyboards, both the forward delete key and the delete (backspace) key have the same effect when pressed while an object is selected)

Related questions

0 like 0 dislike
1 answer 26 views
asked Dec 27, 2018 in Computer Science by danish (1.0m points)
0 like 0 dislike
1 answer 24 views
0 like 0 dislike
0 answers 33 views
0 like 0 dislike
1 answer 39 views
0 like 0 dislike
1 answer 41 views
asked Jan 7, 2019 in Computer Science by danish (1.0m points)
0 like 0 dislike
1 answer 40 views
0 like 0 dislike
0 answers 26 views
0 like 0 dislike
1 answer 36 views
asked Apr 3, 2019 in Computer Science by danish (1.0m points)
0 like 0 dislike
1 answer 28 views
asked Dec 27, 2018 in Computer Science by danish (1.0m points)
0 like 0 dislike
1 answer 37 views
Welcome to Free Homework Help, where you can ask questions and receive answers from other members of the community. Anybody can ask a question. Anybody can answer. The best answers are voted up and rise to the top. Join them; it only takes a minute: School, College, University, Academy Free Homework Help

19.4k questions

18.3k answers

8.7k comments

3.3k users

Free Hit Counters
...