shadow1319 / yet-another-music-application

Automatically exported from code.google.com/p/yet-another-music-application
0 stars 0 forks source link

Playlist name editing does not accept '-' from a numeric keypad #365

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
1. Click on the 'Create new' in the 'Playlists' menu on the left. Editing starts
2. Try to enter a date with '-' sign from the numeric keypad, i.e. '06-11-2012'.

You should see a new playlist entry with the date as a name.

Instead of that Stoffi adds a name till the '-' sign, i.e. '06'. The '-' sign 
enters successfully from the main keyboard area (near '0' key').

I am using the latest Stoffi release from the 8th of July 2012 on Windows 7 x64 
Professional Russian on my desktop PC.

Original issue reported on code.google.com by andyuz...@gmail.com on 6 Nov 2012 at 10:59

GoogleCodeExporter commented 8 years ago
Very good find!

It appears this occurs since the numpad minus is used by the TreeView to 
collapse the current tree. In this case it tries to collapse the "Playlist" 
tree. This causes the EditableTextBlock to loose focus and thus leave the edit 
mode. The regain of focus for the ETB will prevent the collapse however.

The fix is actually less trivial than I initially thought. Mostly since the ETB 
needs to work on KeyUp events and the TreeView seems to collapse on KeyDown. So 
I cannot just stop the key event from propagating, instead I need to find a way 
to prevent the TreeView from acting on it but still let the event reach the ETB.

Original comment by christof...@stoffiplayer.com on 6 Nov 2012 at 2:29

GoogleCodeExporter commented 8 years ago
This issue was closed by revision r1425.

Original comment by christof...@stoffiplayer.com on 22 Jan 2013 at 12:47