Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I want to use the "BackSpace" button as a shortcut key on nautilus. I want to return to the previous folder whilst browsing the Home folder, just like windows 7.

Also I want the same thing while using Firefox, In a way that when I press the shortcut key I will return to the previous web page.

share|improve this question
1  
I can't imagine what is motivation to remove very popular hotkey from app for everyday use. –  ruX Jan 25 at 9:52
add comment

5 Answers 5

for thunar

Just as I thought, I should have written backspace in a different way. This is how I tried:

(gtk_accel_path "<Actions>/ThunarWindow/open-parent" "BackSpace")

And it worked.

share|improve this answer
    
Still gice the following error: ("syntax error near unexpected token `gtk_accel_path'" –  Tareq May 6 '13 at 6:43
    
@Tareq: Are you using Thunar or Nautilus? Ubuntu comes with Nautilus by default... –  Lawand May 13 '13 at 11:06
    
I am using Nautilus. –  Tareq May 14 '13 at 15:54
    
@Tareq: well, what I wrote is for Thunar... Did you try Achu's answer?: askubuntu.com/a/289540/815 –  Lawand May 14 '13 at 20:15
    
Yes, But it didn't work, I don't know how to make the addition, or how to write on the Read-Only file (accels). –  Tareq May 17 '13 at 9:27
show 1 more comment

For Firefox and Nautilus: You can use Alt+ to go back instead of Backspace.

For nautilus 3.6 to bring backspace functionality you need to add this:

 (gtk_accel_path "<Actions>/ShellActions/Up" "BackSpace")

under

~/.config/nautilus/accels

And then restart nautilus by

nautilus -q or killall nautilus

In Thunar you have to add

(gtk_accel_path "<Actions>/ThunarWindow/open-parent" "BackSpace")

to

~/.config/Thunar/accels.scm
share|improve this answer
1  
Does it work for you? ; (gtk_accel_path "<Actions>/ShellActions/Up" "BackSpace") For me, its not working. –  thefourtheye May 2 '13 at 13:00
3  
Please remove the comment. this one -> ; use only (gtk_accel_path "<Actions>/ShellActions/Up" "BackSpace") –  Achu May 2 '13 at 13:15
1  
Aaah... How could I miss that. Spent two hours this morning. I didnt uncomment. :( Thanks @Achu :) –  thefourtheye May 2 '13 at 13:17
2  
Thanks. Since it is not possible to "bind" both Backspace and Alt+Up to the same (I'm actually quite used to the Alt+Down/Up instead of Enter/Backspace when using only the keyboard), but as a workaround you can also change Backspace to do "<Actions>/ShellActions/Back". –  pileofrocks May 24 '13 at 0:43
2  
Aaaaaaah!! its working! sigh of relief! :D thanx a lot –  Nirmik Jun 6 '13 at 9:42
show 8 more comments

For Firefox

Open firefox, type in about:config in address bar, press enter

Search backspace, should return 1 entry, browser.backspace_action

Right click on the value > modify & change from 2 to 0

share|improve this answer
add comment

To make Nautilus go back like in old times, with the Backspace key, do this:

echo '(gtk_accel_path "/ShellActions/Up" "BackSpace")' >> ~/.config/nautilus/accels
share|improve this answer
add comment

Is not "up" is "back", back is the last directory.

echo '(gtk_accel_path "<Actions>/ShellActions/Back" "BackSpace")' >> ~/.config/nautilus/accels
share|improve this answer
    
Indeed this is the only one that worked for me. –  Ruben Mar 26 at 23:19
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.