Hello, Here is an updated patch - please, review. I've made the following changes: * the use of `inline' keyword was removed * the keyboard shortcuts for ALT+F[12] are properly registered in `default_keymap' now and not as menu hotkeys. * the keyboard handlers for ALT+F[12] are no longer registered in the panel keymap since it is incorrect. Changelog: * acinclude.m4 (MC_WITH_CHANGE_DRIVE): Define new macro. * configure.ac: Use `MC_WITH_CHANGE_DRIVE'. * Makefile.am (SRCS): Include drive.c and drive.h into the list. * src/drive.c: New file. * src/drive.h: Ditto. * src/main.c (LeftMenu): [USE_CHANGE_DRIVE] Add new menu item. (RightMenu): Ditto. (default_map): [USE_CHANGE_DRIVE] Bind `drive_cmd_left()' to ALT+F1. [USE_CHANGE_DRIVE] Bind `drive_cmd_right()' to ALT+F2. * src/screen.c (panel_keymap): [USE_CHANGE_DRIVE] Bind `drive_cmd()' to ALT+d. Thanks! P.S. I've posted yesterday but the message was put on hold by the mailing list software since it was too big (>20 k). Thus I'm attaching a gzipped patch.
Attachment:
mc-change-drive-fixed.patch.gz
Description: Binary data