0.72: Delete with keyboard from treeview

Reported bugs that have been closed and/or resolved

Moderators: XnTriq, xnview, Dreamer

Post Reply
bambooloutre
Posts: 1
Joined: Mon Mar 09, 2015 4:08 pm

0.72: Delete with keyboard from treeview

Post by bambooloutre » Mon Mar 09, 2015 4:17 pm

Hi,

I'm using XnViewMP Version 0.72 x64 (Dec 19 2014) on W8.1 x64

I use a lot keyboard navigation into the treeview.

Problem : DEL key does'nt delete current selected folder. Tried to change keyboard shortcut but no result.

Steps to reproduce :

Select a folder from the treewiew. Hit DEL.
Result --> nothing happens.
Expected result --> currently highlighted folder should be deleted.

User avatar
helmut
Posts: 8153
Joined: Sun Oct 12, 2003 6:47 pm
Location: Frankfurt, Germany

Re: Delete with keyboard from treeview

Post by helmut » Sun Feb 12, 2017 4:36 pm

Bug reproduced in 0.84.

Currently, XnView tries to delete a file when pressing "Del" key although the focus is in the folder tree (and not in the file list).

To reproduce:
1. Start XnView and browse a folder with image files.
2. Select two image files
3. Click on the opened folder in the folder tree.
4. Press "Del" key
Actual behaviour (bug): A message box appears "Are you sure to delete these 2 item(s)?"
Expected behaviour (correct): A message box appears asking whether you really want to delete the selected folder.

Related topic:
- 0.84: 'Del' key on categories deletes files

User avatar
xnview
Author of XnView
Posts: 31174
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: 0.72: Delete with keyboard from treeview

Post by xnview » Sat Jul 08, 2017 1:04 pm

This problem is supposed to be fixed in XnView MP 0.87. Please check and confirm the bug fix here.
Pierre.

HanVroon
Posts: 211
Joined: Thu Jan 28, 2010 7:30 am

Re: 0.72: Delete with keyboard from treeview

Post by HanVroon » Wed Jul 26, 2017 12:58 pm

Just tested with 0.87 beta 2.

Following the steps Helmut provided, pressing Del asks for deleting the folder, if pressed Yes the folder is moved to the Recycle bin. That's correct.
But if someone presses Shitf-Del because it should be permanently deleted, still the message "Are you shure you want to delete these 2 item(s)" is shown, pressing Yes deletes the two selected items, not the folder.

So not completely fixed yet, I think.

HanVroon
Posts: 211
Joined: Thu Jan 28, 2010 7:30 am

Re: 0.72: Delete with keyboard from treeview

Post by HanVroon » Sat Jul 29, 2017 7:11 am

Addendum, as understood from the topic:
http://newsgroup.xnview.com/viewtopic.php?f=111&t=35903 (Deleting folders do not work?)...

I tested with Shift + Del also, which is not supported, so the bug is fixed.

So it's just that maybe the message asking if the items should be deleted while the folder was given focus should be suppressed here also?

User avatar
xnview
Author of XnView
Posts: 31174
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: 0.72: Delete with keyboard from treeview

Post by xnview » Sat Jul 29, 2017 11:13 am

HanVroon wrote: So it's just that maybe the message asking if the items should be deleted while the folder was given focus should be suppressed here also?
you have always a message box if focus is on treeview??
Pierre.

HanVroon
Posts: 211
Joined: Thu Jan 28, 2010 7:30 am

Re: 0.72: Delete with keyboard from treeview

Post by HanVroon » Mon Jul 31, 2017 10:02 am

Yes, always, als long as there are files in the folder, the folder is selected (has focus in the Treeview), and Shift-Del is pressed.

So:
- Select a folder with files.
- Make shure the folder in the Treeview has focus.
- Press Shift + Del.
- Message appears "Are you shure to delete these n item(s)?"

User avatar
xnview
Author of XnView
Posts: 31174
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: 0.72: Delete with keyboard from treeview

Post by xnview » Tue Aug 01, 2017 11:12 am

HanVroon wrote:Yes, always, als long as there are files in the folder, the folder is selected (has focus in the Treeview), and Shift-Del is pressed.

So:
- Select a folder with files.
- Make shure the folder in the Treeview has focus.
- Press Shift + Del.
- Message appears "Are you shure to delete these n item(s)?"
right, will be fixed in beta 3
Pierre.

HanVroon
Posts: 211
Joined: Thu Jan 28, 2010 7:30 am

Re: 0.72: Delete with keyboard from treeview

Post by HanVroon » Fri Aug 18, 2017 8:38 am

Tested with 0.87 beta 3, Fixed.

When selecting a folder with files and pressing Shift-Del, nothing happens because Shift-Del is not supported.
The message "Are you shure to delete these n item(s)?" does not appear anymore.

Post Reply