# Ctrl-B selects asterisks

**URL:** https://meta.discourse.org/t/ctrl-b-selects-asterisks/27215
**Category:** Bug
**Created:** [April 5, 2015, 1:50am UTC](https://meta.discourse.org/t/ctrl-b-selects-asterisks/27215 "2015-04-05T01:50:55Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![ky\_metro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ky_metro/32/42807_2.png) [@ky\_metro](https://meta.discourse.org/u/ky_metro)
#### Post date: [April 5, 2015, 1:50am UTC](https://meta.discourse.org/t/ctrl-b-selects-asterisks/27215/1 "2015-04-05T01:50:55Z")

</div>

Repro steps: You want to type bold text, so you set boldface with Ctrl-B. The editor inputs ` **strong text** `, all selected. If you immediately begin to type your text, the selection will disappear and your asterisks will be gone, leaving your text un-bolded. Currently you must re-select the words before typing. Minor annoyance but there it is.

It’d work better to only select the words, and not the surrounding asterisks. Alternatively, you could omit the words and place the cursor between four asterisks. I’ve seen Markdown editors do it both ways.

---

<div class="post-metadata">

### Author: ![savef](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/savef/32/115698_2.png) [@savef](https://meta.discourse.org/u/savef)
#### Post date: [April 5, 2015, 4:34am UTC](https://meta.discourse.org/t/ctrl-b-selects-asterisks/27215/2 "2015-04-05T04:34:26Z")

</div>

I broke this in a pull request that changed the behaviour of the bold and italics buttons. I’ll try to create another one that fixes it this week.

---

<div class="post-metadata">

### Author: ![RaceProUK](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/raceprouk/32/115844_2.png) [@RaceProUK](https://meta.discourse.org/u/RaceProUK)
#### Post date: [April 5, 2015, 10:01am UTC](https://meta.discourse.org/t/ctrl-b-selects-asterisks/27215/3 "2015-04-05T10:01:37Z")

</div>

I’m not the only one to see this then 😄

---

<div class="post-metadata">

### Author: ![savef](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/savef/32/115698_2.png) [@savef](https://meta.discourse.org/u/savef)
#### Post date: [April 7, 2015, 6:45pm UTC](https://meta.discourse.org/t/ctrl-b-selects-asterisks/27215/4 "2015-04-07T18:45:38Z")

</div>

This was fixed with [PR3344](https://github.com/discourse/discourse/pull/3344). We’ll see if I didn’t break anything else.

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [April 7, 2015, 6:50pm UTC](https://meta.discourse.org/t/ctrl-b-selects-asterisks/27215/5 "2015-04-07T18:50:45Z")

</div>


