[Midnightbsd-cvs] src [11301] trunk/usr.sbin/bsdinstall/partedit/diskeditor.c: add bindings

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Wed Jul 4 09:47:52 EDT 2018


Revision: 11301
          http://svnweb.midnightbsd.org/src/?rev=11301
Author:   laffer1
Date:     2018-07-04 09:47:52 -0400 (Wed, 04 Jul 2018)
Log Message:
-----------
add bindings

Modified Paths:
--------------
    trunk/usr.sbin/bsdinstall/partedit/diskeditor.c

Modified: trunk/usr.sbin/bsdinstall/partedit/diskeditor.c
===================================================================
--- trunk/usr.sbin/bsdinstall/partedit/diskeditor.c	2018-07-04 13:47:25 UTC (rev 11300)
+++ trunk/usr.sbin/bsdinstall/partedit/diskeditor.c	2018-07-04 13:47:52 UTC (rev 11301)
@@ -1,3 +1,4 @@
+/* $MidnightBSD$ */
 /*-
  * Copyright (c) 2011 Nathan Whitehorn
  * All rights reserved.
@@ -23,8 +24,7 @@
  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  * SUCH DAMAGE.
  *
- * $MidnightBSD$
- * $FreeBSD: src/usr.sbin/bsdinstall/partedit/diskeditor.c,v 1.3 2011/10/07 01:40:30 nwhitehorn Exp $
+ * $FreeBSD: stable/10/usr.sbin/bsdinstall/partedit/diskeditor.c 251854 2013-06-17 15:16:14Z bapt $
  */
 
 #include <stdio.h>
@@ -95,6 +95,22 @@
 		END_KEYS_BINDING
 	};
 
+	static DLG_KEYS_BINDING binding2[] = {
+		INPUTSTR_BINDINGS,
+		ENTERKEY_BINDINGS,
+		DLG_KEYS_DATA( DLGK_FIELD_NEXT, TAB ),
+		DLG_KEYS_DATA( DLGK_FIELD_PREV, KEY_BTAB ),
+		DLG_KEYS_DATA( DLGK_ITEM_NEXT,  CHR_NEXT ),
+		DLG_KEYS_DATA( DLGK_ITEM_NEXT,  KEY_DOWN ),
+		DLG_KEYS_DATA( DLGK_ITEM_NEXT,  KEY_NEXT ),
+		DLG_KEYS_DATA( DLGK_ITEM_PREV,  CHR_PREVIOUS ),
+		DLG_KEYS_DATA( DLGK_ITEM_PREV,  KEY_PREVIOUS ),
+		DLG_KEYS_DATA( DLGK_ITEM_PREV,  KEY_UP ),
+		DLG_KEYS_DATA( DLGK_PAGE_NEXT,  KEY_NPAGE ),
+		DLG_KEYS_DATA( DLGK_PAGE_PREV,  KEY_PPAGE ),
+		END_KEYS_BINDING
+	};
+
 	/*
 	 * Set up editor window.
 	 */
@@ -126,7 +142,7 @@
 	/* Partition list sub-window */
 	partitions = dlg_sub_window(dialog, partlist_height, partlist_width,
 	    y + 3, x + 1);
-	dlg_register_window(partitions, "partlist", binding);
+	dlg_register_window(partitions, "partlist", binding2);
 	dlg_register_buttons(partitions, "partlist", buttons);
 	wattrset(partitions, menubox_attr);
 



More information about the Midnightbsd-cvs mailing list