Opened 11 years ago

Closed 11 years ago

#306 closed enhancement/feature request (fixed)

Add danish letters to gui-internal keyboard

Reported by: Odlg Owned by: cp15
Priority: major Milestone:
Component: gui/internal Version: git master
Severity: Keywords:
Cc:

Description

Here is a patch to add danish letters to the gui-internal keyboard.

Index: navit/gui/internal/gui_internal.c
===================================================================
--- navit/gui/internal/gui_internal.c	(revision 2055)
+++ navit/gui/internal/gui_internal.c	(working copy)
@@ -2537,6 +2537,9 @@
 		gui_internal_keyboard_key(this, wkbd, "Ä","Ä",max_w,max_h);
 		gui_internal_keyboard_key(this, wkbd, "Ö","Ö",max_w,max_h);
 		gui_internal_keyboard_key(this, wkbd, "Ü","Ü",max_w,max_h);
+		gui_internal_keyboard_key(this, wkbd, "Æ","Æ",max_w,max_h);
+		gui_internal_keyboard_key(this, wkbd, "Ø","Ø",max_w,max_h);
+		gui_internal_keyboard_key(this, wkbd, "Å","Å",max_w,max_h);
 		for (i = 0 ; i < 27 ; i++) {
 			gui_internal_keyboard_key_data(this, wkbd, "", NULL, NULL, NULL,max_w,max_h);
 		}
@@ -2548,6 +2551,9 @@
 		gui_internal_keyboard_key(this, wkbd, "ä","ä",max_w,max_h);
 		gui_internal_keyboard_key(this, wkbd, "ö","ö",max_w,max_h);
 		gui_internal_keyboard_key(this, wkbd, "ü","ü",max_w,max_h);
+		gui_internal_keyboard_key(this, wkbd, "æ","æ",max_w,max_h);
+		gui_internal_keyboard_key(this, wkbd, "ø","ø",max_w,max_h);
+		gui_internal_keyboard_key(this, wkbd, "å","å",max_w,max_h);
 		for (i = 0 ; i < 27 ; i++) {
 			gui_internal_keyboard_key_data(this, wkbd, "", NULL, NULL, NULL,max_w,max_h);
 		}

Change History (2)

comment:1 Changed 11 years ago by Odlg

An improved patch:

===================================================================
--- navit/gui/internal/gui_internal.c	(revision 2071)
+++ navit/gui/internal/gui_internal.c	(working copy)
@@ -2537,7 +2537,10 @@
 		gui_internal_keyboard_key(this, wkbd, "Ä","Ä",max_w,max_h);
 		gui_internal_keyboard_key(this, wkbd, "Ö","Ö",max_w,max_h);
 		gui_internal_keyboard_key(this, wkbd, "Ü","Ü",max_w,max_h);
-		for (i = 0 ; i < 27 ; i++) {
+		gui_internal_keyboard_key(this, wkbd, "Æ","Æ",max_w,max_h);
+		gui_internal_keyboard_key(this, wkbd, "Ø","Ø",max_w,max_h);
+		gui_internal_keyboard_key(this, wkbd, "Å","Å",max_w,max_h);
+		for (i = 0 ; i < 23 ; i++) {
 			gui_internal_keyboard_key_data(this, wkbd, "", NULL, NULL, NULL,max_w,max_h);
 		}
 		wk=gui_internal_keyboard_key_data(this, wkbd, "A",gui_internal_keyboard_change,wkbdb,NULL,max_w,max_h);
@@ -2548,7 +2551,10 @@
 		gui_internal_keyboard_key(this, wkbd, "ä","ä",max_w,max_h);
 		gui_internal_keyboard_key(this, wkbd, "ö","ö",max_w,max_h);
 		gui_internal_keyboard_key(this, wkbd, "ü","ü",max_w,max_h);
-		for (i = 0 ; i < 27 ; i++) {
+		gui_internal_keyboard_key(this, wkbd, "æ","æ",max_w,max_h);
+		gui_internal_keyboard_key(this, wkbd, "ø","ø",max_w,max_h);
+		gui_internal_keyboard_key(this, wkbd, "å","å",max_w,max_h);
+		for (i = 0 ; i < 23 ; i++) {
 			gui_internal_keyboard_key_data(this, wkbd, "", NULL, NULL, NULL,max_w,max_h);
 		}
 		wk=gui_internal_keyboard_key_data(this, wkbd, "a",gui_internal_keyboard_change,wkbdb,NULL,max_w,max_h);

comment:2 Changed 11 years ago by Singesang

  • Resolution set to fixed
  • Status changed from new to closed

Added in r2080. Thanks.

Note: See TracTickets for help on using tickets.