New user registration is currently disabled due to spam abuse / Регистрация новых пользователей в настоящее время приостановлена из-за злоупотреблений спаммерами

Some shortcuts suggestions

General discussion

Some shortcuts suggestions

Postby bwo » Tue Sep 15, 2009 6:44 pm

I think ColdenDict needs some more hotkeys.

First, there should be shortcuts for every group of dictionaries (like ctrl+1, ctrl+2 etc, or configurable). Pressing these keys should change the active group, but also, if there is some search already displayed, should search the current term in this group. (btw, there could also be an option in the mouse right-click menu, like "search current term in a group" -> and submenu with existing groups).

Second thing is internal searching (within the displayed results). Now after activating the search, there are "previous" and "next" buttons, but pressing alt+n just causes writing "n" in the search box. I think there should also be a standard F3/shift+F3 for this, but now it conflicts with "dictionaries" preferences.

Third, some context insensitive shortcuts for navigating list of terms and scrolling results window. This would be helpful, becouse when there are some websites or dictionaries with links displayed, focus is of little use - it goes to every link in the page before it "gets out". BTW, the focus order might be improved a bit. Now it seems to be 1. search-box, 2. terms list, 3. groups drop-down list, 4. results window, 5. tabs, whereas more intuitive would be in the same order the elements are actually displayed: 1. groups drop-down list , 2. search-box, 3. terms list, 4. tabs, 5. results window.
bwo
 
Posts: 6
Joined: Tue Sep 15, 2009 5:40 pm

keys request

Postby shula » Wed Jan 13, 2010 5:58 am

i'm missing the following keys:

in the main window, a key to go directly into the "LOOK UP" textbox.
for example, Babylon program uses the browser convention Alt+D (which usually mean "address bar").

In the popup translation dialog, a key to close the dialog, preferably ESC.
it will be very helpful, and also compatible with other programs.
shula
 
Posts: 14
Joined: Wed Jan 13, 2010 5:40 am

Re: keys request

Postby zhangjinsong » Wed Jan 13, 2010 12:48 pm

shula wrote:i'm missing the following keys:

in the main window, a key to go directly into the "LOOK UP" textbox.
for example, Babylon program uses the browser convention Alt+D (which usually mean "address bar").

In the popup translation dialog, a key to close the dialog, preferably ESC.
it will be very helpful, and also compatible with other programs.


I read the code and found ALL of the above have been done in GD already.

1. In the main window, pressing ESC key will put the focus in "LOOK UP" textbox.
Code: Select all
 focusTranslateLineAction.setShortcut( QKeySequence( "Esc" ) );
connect( &focusTranslateLineAction, SIGNAL( triggered() ),
           this, SLOT( focusTranslateLine() ) );


2. In the popup dialog, pressing ESC key will close the dialog itself.
Code: Select all
escapeAction.setShortcut( QKeySequence( "Esc" ) );
addAction( &escapeAction );
connect( &escapeAction, SIGNAL( triggered() ),
           this, SLOT( escapePressed() ) );
void ScanPopup::escapePressed()
{
  if ( !definition->closeSearch() )
    hideWindow();
}


Use the latest git version.

I think GD needs help documentation now.
zhangjinsong
 
Posts: 28
Joined: Sat Oct 31, 2009 7:05 am

Re: Some shortcuts suggestions

Postby ikm » Wed Jan 13, 2010 12:56 pm

shula wrote:in the main window, a key to go directly into the "LOOK UP" textbox.
for example, Babylon program uses the browser convention Alt+D (which usually mean "address bar").

Just start typing the new word right away -- it will focus itself.
ikm
Автор GoldenDict
 
Posts: 1595
Joined: Wed Feb 04, 2009 10:40 am

Re: Some shortcuts suggestions

Postby zhangjinsong » Wed Jan 13, 2010 1:04 pm

ikm wrote:
shula wrote:in the main window, a key to go directly into the "LOOK UP" textbox.
for example, Babylon program uses the browser convention Alt+D (which usually mean "address bar").

Just start typing the new word right away -- it will focus itself.


That's perfect.
zhangjinsong
 
Posts: 28
Joined: Sat Oct 31, 2009 7:05 am

Re: Some shortcuts suggestions

Postby shula » Wed Jan 13, 2010 5:50 pm

ikm wrote:
shula wrote:in the main window, a key to go directly into the "LOOK UP" textbox.
for example, Babylon program uses the browser convention Alt+D (which usually mean "address bar").

Just start typing the new word right away -- it will focus itself.


wow, great!
thanks a lot.

(except that the ESC key didn't close the popup on my version, but i'll try later the git version)
shula
 
Posts: 14
Joined: Wed Jan 13, 2010 5:40 am

Re: Some shortcuts suggestions

Postby shula » Wed Jan 13, 2010 7:37 pm

everything works as you said in the nightly build.
thanks!
shula
 
Posts: 14
Joined: Wed Jan 13, 2010 5:40 am


Return to General

Who is online

Users browsing this forum: No registered users and 122 guests