Broken key sequence for shortcuts

Bug #1294169 reported by Alexander Wolf
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Stellarium
Fix Released
Medium
Guillaume Chereau

Bug Description

This bug report related to question #245630.

After introducing new manager for shortcuts some bindings is broken now. For example - key sequence for shortcuts like "Alt+P, 1" didn't work now.

Changed in stellarium:
assignee: nobody → Guillaume Chereau (guillaume-chereau)
Revision history for this message
Guillaume Chereau (guillaume-chereau) wrote :

Normally all the old shortucts from 'default_shortcuts.json' should have been put directly in the cpp code, but maybe I forgot some of them.

What was the "Alt+P, 1" shortcut assigned to? I cannot find it in 'default_shortcuts.json'. Are there any other shortcuts you found missing?

Revision history for this message
Alexander Wolf (alexwolf) wrote :

It's not exactly missing. As example the code contains shortcut for stop script execution - Ctrl+D, S - but this shortcut doesn't work. Next samples: Ctrl+D, P (Pause script execution), Ctrl+D, R (Resume script execution), Ctrl+U, 1 (Show and zoom Moon - we lost embedded scripts for shortcuts too), and Ctrl+U, 2 (Run landscapes script from file).

Revision history for this message
Guillaume Chereau (guillaume-chereau) wrote : Re: [Bug 1294169] Re: Broken key sequence for shortcuts

On Wed, Mar 19, 2014 at 03:22:12AM -0000, Alexander Wolf wrote:
> It's not exactly missing. As example the code contains shortcut for stop
> script execution - Ctrl+D, S - but this shortcut doesn't work. Next
> samples: Ctrl+D, P (Pause script execution), Ctrl+D, R (Resume script
> execution)
OK, there might be a bug somewhere. I just tried and it seems to work
on my machine though (running GNU/linux).

> Ctrl+U, 1 (Show and zoom Moon)
Yes, we lost this one since it was an embedded script.

> - we lost embedded scripts for
> shortcuts too), and Ctrl+U, 2 (Run landscapes script from file).
For the embedded scripts, I think it makes more sense to add them as
normal scripts, and them assign a shortcut to it. Is there a need to
mix scripts with the configuration files?

It would be trivial to add the show moon script back, and assign it
Ctrl+U, 1 the shortcut if this is needed.

Revision history for this message
Guillaume Chereau (guillaume-chereau) wrote :

On my computer, Ctrl+D, [S, P, R] all seem to work. Maybe there is a problem with the Russian keyboard layout? Can you try with an English layout?

For the embedded scripts, I don't really feel that they are important. I think It makes more sense to add a normal script and then assign a shortcut to it. Is there a need for that?

Revision history for this message
Alexander Wolf (alexwolf) wrote :

On my system Ctrl+D, [S, P, R] doesn't work on both - English and Russian - layouts. :(

I think embedded scripts don't needed, but it's should discuss.

Plus please try set new key sequence for any scripts as example.

Revision history for this message
Guillaume Chereau (guillaume-chereau) wrote :

OK, I just added a shortcut for the constellation tour script (ctrl-U,1) in the default config file. commit 6687.

Revision history for this message
Alexander Wolf (alexwolf) wrote :

After revision 6709 all my custom shortcuts (like Ctrl+U,1 for scripts) works now. But I have problem for Ctrl+D, [S, P, R] still - troubles in scripting engine?

Changed in stellarium:
status: Confirmed → In Progress
Revision history for this message
Guillaume Chereau (guillaume-chereau) wrote :

On Tue, Apr 08, 2014 at 04:45:50PM -0000, Alexander Wolf wrote:
> After revision 6709 all my custom shortcuts (like Ctrl+U,1 for scripts)
> works now. But I have problem for Ctrl+D, [S, P, R] still - troubles in
> scripting engine?
Yeah I suspect this might be a problem of the scripting engine. Are
testing a script in particular?

I attach a small patch that adds debug output to the Ctrl+D, [S, P, R]
actions. Can you try it out and check that you actually see the output
when you press the keys?

Revision history for this message
Alexander Wolf (alexwolf) wrote :

Yeah, this is bug in scripting engine.

I get those lines:
TEST stopScript
"script error: "JavaScript execution exceeded timeout." @ line 0"
TEST pauseScript
TEST stopScript

Revision history for this message
Guillaume Chereau (guillaume-chereau) wrote :

Can you tell me with what script in particular the bug can be
reproduced?

Revision history for this message
Alexander Wolf (alexwolf) wrote :

You can use solar eclipse.ssc for it (and other eclipse scripts)

Revision history for this message
Alexander Wolf (alexwolf) wrote :

Guillaume, any progress?

Revision history for this message
Alexander Wolf (alexwolf) wrote :

Hm. I checked it and it works now.

Changed in stellarium:
status: In Progress → Fix Committed
Revision history for this message
Guillaume Chereau (guillaume-chereau) wrote :

OK good, it also still works for me.

Changed in stellarium:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related questions

Remote bug watches

Bug watches keep track of this bug in other bug trackers.