Tux Guitar

Problems

Subject shortcuts not working properly, copying, removing



Author Message
idle
Post: Jul 4th 2008 at 6:27 PM

Hello, I just started using tuxguitar, it looks good, but sometimes behaves funny.

1) I set some shortcuts for myself. They worked well until I closed the application and later started again. They were still listed in the list of shortcuts, but weren't working. When I set them again, they started working, but I wouldn't like to repeat it every time I start the app.

2) The copying of measures often copies different number of measures - like from the measure specified in From until the end of track, not until the To measure. Also removing measures often removes only one measure instead of the specified range.


Back to Top
 
Julian
Post: Jul 4th 2008 at 10:46 PM

What tuxguitar version and operating system do you have ?


Back to Top
 
idle
Post: Jul 25th 2008 at 11:28 AM

I'm using version 1.0 on Debian (straight from Debian repository).


Back to Top
 
Julian
Post: Jul 25th 2008 at 11:39 AM

Can you show me the content of the file ?:

~/.tuxguitar-1.0/keybindings.xml


Back to Top
 
idle
Post: Jul 25th 2008 at 2:01 PM

here it is:
































































I've set my own shortcuts for note durations, they are listed, but don't work after startup. When I set them again, they start working (the keybindings.xml file refreshes, but the content doesn't change).
Actually the Control+1 shortcut stopped working altogether now. Is it possible that some other application steals them?


Back to Top
 
idle
Post: Jul 25th 2008 at 2:05 PM

oops, this will be better:
http://idle.mysteria.cz/moje/keybindings.xml


Back to Top
 
Julian
Post: Jul 25th 2008 at 2:40 PM

I tried your configuration file, but i haven't any problem to use Ctrl+Number to change durations.

> the keybindings.xml file refreshes, but the content doesn't change
it couldn't be the problem.
The shortcut dialog, don't use "keybindings.xml".
it use the KeyBindingManager object from tuxguitar.
The manager load all keybingings on startup, and save them when dialog call it.
but if you see that keys on dialog after startup, so they was sucessfully loaded to the manager.


Does other "default" keys works ?
such as: "Control+t"


Back to Top
 
idle
Post: Jul 30th 2008 at 6:24 PM

Yes, the usual shortcuts work fine.


Back to Top
 
Julian
Post: Jul 30th 2008 at 8:21 PM

Ok, there is only one thing what i'm thinking.

The XML file save the "chars" (e.g: "1" )
while on background tuxguitar use keycodes. (e.g: "49" = char "1" )

When tuxguitar open the XML file, it parse the chars to key codes.
so here is maybe the problem.
there are some chars, what have 2 keycodes.
and it happen with number characters.
* you have numbers on the main keyboard
* and you have numbers on the keypad

I think, the parser is converting the char number only on 1 keycode.

Can you try test if my theory is right?

Try open tuxguitar and exec your shortcut:
Control + 1 ( with main keyboard numbers )

if it don't work.. try do the same, but now with the "keypad" numbers.

Does any of that keys work ?


Back to Top
 
idle
Post: Jul 31st 2008 at 8:07 AM

OK, it seems that you have found it. I only used the numeric keypad before, and that led to all the troubles I described.

Using the main keyboard numbers is OK and works - if I use English keyboard layout.

The trouble is that I mostly use the Czech keyboard layout, and with that, my shortcuts don't work either. That's probably because the Czech one primarily has special letters on these keys, and you get the numbers by pushing Shift+key.
I've tried both Ctrl+key and Ctrl+Shift+key, but neither works for my shortcuts.


Back to Top
 
Julian
Post: Jul 31st 2008 at 10:41 AM

Ok, i'll save keycodes on the XML file instead of char name.
That was using char names, from older versions where tuxguitar on background used also char names.
but now it have no sense keep that XML structure.

So i fixed it on SVN (trunk and 1.0 branch) version.


Back to Top