Why does ` (backtick) not appear until after I press another key?
Rise to the top 3% as a developer or hire one of them at Toptal: https://topt.al/25cXVn
--------------------------------------------------
Music by Eric Matyas
https://www.soundimage.org
Track title: Horror Game Menu Looping
--
Chapters
00:00 Why Does ` (Backtick) Not Appear Until After I Press Another Key?
00:24 Accepted Answer Score 31
01:28 Answer 2 Score 17
01:40 Answer 3 Score 10
02:23 Answer 4 Score 0
02:43 Thank you
--
Full question
https://superuser.com/questions/751642/w...
--
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...
--
Tags
#keyboard #history #backticks
#avk47
ACCEPTED ANSWER
Score 31
This is either your keyboard or the software you are using (we can't see that from here). So it is not specific to StackExchange sites.
This is done because the software supports another feature: pressing the apostroph or the backtick followed by another letter (most common a vowel) is an easy way to write diacritical characters like é
and è
.
Because of this feature the software cannot immediately display the apostroph or backtick, it has to wait for the next character to determine what your intention is. Only when you press the next backtick it knows that you intended to enter a backtick.
This is not bad in itself: just remember to type the backtick twice, then press cursor left, then type what comes between them. That way you won't forget the closing backtick.
This is akin to typing the { }
brackets in the C programming language first before entering the code that goes in between. There, having a closing bracket at the correct location is much more important.
This is not only done with apostroph and backtick, but e.g. also with double quotation marks (" and e gives ë
) and even with consonants (, and C gives Ç
).
ANSWER 2
Score 17
This is called a dead key. https://en.wikipedia.org/wiki/Dead_key
It depends on your local settings (i.e. Keyboard layout).
ANSWER 3
Score 10
Other answers have mentioned that this can be a keyboard layout thing, but I felt that a concrete example might be useful, so:
On Windows I generally use the "English (UK) Extended" keyboard layout, which has better support for typing accented characters, but means I have to press backtick twice to get the ` character. If I switch to the basic "English (UK)" keyboard layout, I only have to press backtick once. So the latter keyboard is perhaps better for some uses (such as coding), even though the extended version is better for others (such as writing).
If you have more than one keyboard layout installed, on Windows you can use Ctrl + Shift to switch between them.
ANSWER 4
Score 0
If you added a nodeadkeys
variant and still get dead-key-ish behavior, it might be because you have multiple layouts, e.g. German
and German (nodeadkeys)
. You can cycle through them using Super+Space
on linux.
(Maybe the key-combination is different for you: see setxkbmap -print -verbose 10
the options: grp:<combination>
line).