JDownloader Community - Appwork GmbH
 

Reply
 
Thread Tools Display Modes
  #1  
Old 09.06.2010, 16:24
tunayx's Avatar
tunayx tunayx is offline
JD Legend
 
Join Date: Mar 2009
Location: Xp Sp3 wth Java 7 No Firewall / Turkey
Posts: 743
Default "Add all to downloads" hotkey tweak

"Add all to downloads" hotkey is currently Alt+A I want assign it to Enter. Any tweak for this?
Reply With Quote
  #2  
Old 10.06.2010, 07:00
drbits's Avatar
drbits drbits is offline
JD English Support (inactive)
 
Join Date: Sep 2009
Location: Physically in Los Angeles, CA, USA
Posts: 4,434
Default

Edit the jdownloader\jd\languages\en.loc (or whatever language you use). I use notepad++ for these edits, because it recognizes both Linux and Windows line endings.
If it is not in xx.loc, copy the appropriate line out of keys.def (the default if it is not in the language file).

Search for "Add all to downloads" (no quotes). You will notice
gui.menu.action.linkgrabber.addall.accel = -
Change it to
gui.menu.action.linkgrabber.addall.accel = ENTER

It worked when I tried it on 11660 (Nightly). I do not know how well it will work on 9579 (Stable). If you are currently using Stable, please do not change to Nightly for this. The Nightly UI hangs and we don't expect a fix until next week (too many developers with exams).

Last edited by drbits; 10.06.2010 at 08:11.
Reply With Quote
  #3  
Old 10.06.2010, 14:48
tunayx's Avatar
tunayx tunayx is offline
JD Legend
 
Join Date: Mar 2009
Location: Xp Sp3 wth Java 7 No Firewall / Turkey
Posts: 743
Default

I used Emeditor, added it to en.loc (I use English) restarted Jd but ENTER didn't work. I have nightly 11557. Also tried later on notepad++ but not working. By the way I mean pressing only ENTER to add all packages not alt+ENTER.

Last edited by tunayx; 10.06.2010 at 15:14.
Reply With Quote
  #4  
Old 10.06.2010, 20:43
drbits's Avatar
drbits drbits is offline
JD English Support (inactive)
 
Join Date: Sep 2009
Location: Physically in Los Angeles, CA, USA
Posts: 4,434
Default

Try updating. They have been working on this code. It used to work very differently. I used 11660.

It definitely worked for me just now. However, if anything is specifically selected, the UI rules override the accelerator keys and the Enter applies to what is selected.

The insert key is probably a better choice anyway. I don't know if that will work or if the name is INS or INSERT. I would have to try it out.
Reply With Quote
  #5  
Old 10.06.2010, 21:04
tunayx's Avatar
tunayx tunayx is offline
JD Legend
 
Join Date: Mar 2009
Location: Xp Sp3 wth Java 7 No Firewall / Turkey
Posts: 743
Default

I see, Enter works only when pack is selected. But Alt+A works even no selected packs. I wish Enter works in such way too.

Last edited by tunayx; 10.06.2010 at 21:09.
Reply With Quote
  #6  
Old 10.06.2010, 21:44
drbits's Avatar
drbits drbits is offline
JD English Support (inactive)
 
Join Date: Sep 2009
Location: Physically in Los Angeles, CA, USA
Posts: 4,434
Default

The OS design is for Enter or Space to push a button if the button is selected. If nothing (or a package or link) is selected Enter will work fine. The problem is that after performing an "Add URLs" or "Add Container", the button will be selected (I think you can press Escape).
Reply With Quote
  #7  
Old 10.06.2010, 22:51
tunayx's Avatar
tunayx tunayx is offline
JD Legend
 
Join Date: Mar 2009
Location: Xp Sp3 wth Java 7 No Firewall / Turkey
Posts: 743
Default

I understand what you say. Problem isn't related it I think. I tried esc and made several tries without touching any button. Although I changed that line, Alt+A still works while Enter doesn't. To ensure I'm editing correct lang file I changed some text and see the changes on Jd so I'm on correct lang file.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT +2. The time now is 16:03.
Provided By AppWork GmbH | Privacy | Imprint
Parts of the Design are used from Kirsch designed by Andrew & Austin
Powered by vBulletin® Version 3.8.10 Beta 1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.