Ubuntu – Control-R stopped working, I have to press Control-Shift-R instead

18.10bashgnome-terminalshortcut-keys

Before, I could hit ControlR in GNOME Terminal to enter Bash's (reverse-i-search) mode.

However, this stopped working, the cursor just flashes without doing anything. This also affects remote and container shells (where it was working before).

Although I've noticed, it works when I'm pressing: ControlShiftR.

I'm using GNU bash v4.4.19 on GNOME Terminal v3.30.1. I'm not sure if this is some new feature of Ubuntu Cosmic, or something else.

It seems, this also affects web-browsers, where I've to press ControlShiftR to refresh the page, and ControlR doesn't take any effect (Chrome and Opera).

My keyboard works fine, I don't have Caps Lock enabled, and I'm not using any custom programs to modify the default shortcuts and I've never changed any. The issue is reproducible all the time, I've tried this already over hundred of times, the same effect.

How do I change the shortcut back to previous default combination (ControlR)?


What I've tried:

  • Reset All Keyboard Shortcuts to default in Ubuntu Settings.

Here are few details:

$ bind -p | grep 'search-history'
"\C-s": forward-search-history
# non-incremental-forward-search-history (not bound)
# non-incremental-forward-search-history-again (not bound)
# non-incremental-reverse-search-history (not bound)
# non-incremental-reverse-search-history-again (not bound)
"\C-r": reverse-search-history

I've checked, and I don't override the above bindings in my dotfiles:

$ grep -r reverse-search-history ~/.bash*
(nothing)

Best Answer

I had this problem and realised I had SimpleScreenRecorder running which was capturing the CTRL+R hotkey. Hope this helps any googlers!

Related Question