Skip to content

src/nautilus-files-view.c: Fixed delete key hint

Oliver Calder requested to merge oac/nautilus:fix_delete_hint into master

The keypad hint for deleting a file displays as "Delete (keypad)" instead of "Delete". It appears that this is due to the order in which the Delete key and the Keypad Delete key are bound to the delete action.

In particular, for each of the five delete actions, the GDK_KEY_Delete (0xffff) had been bound before the GDK_KEY_KP_Delete (0xff9f). As a result, when one of those delete actions was later enabled, the most recently bound key was used to populate the shortcut hint.

In this commit, each GDK_KEY_Delete binding is moved below the corresponding GDK_KEY_KP_Delete binding so that the non-keypad delete is the most recent binding, and thus the shortcut hint correctly displays "Delete" instead of "Delete (keypad)".

This is tracked in issue #2357 (closed) #2357 (closed)

Edited by António Fernandes

Merge request reports