From 33c3691b571ce4b6a2aa6997b70c3bc5d991ca9d Mon Sep 17 00:00:00 2001 From: Jed Barber Date: Mon, 12 Jun 2017 23:23:15 +1000 Subject: Keybinding methods all done for Text_Editor, with modifiers disabled due to FLTK issues --- src/fltk.ads | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/fltk.ads') diff --git a/src/fltk.ads b/src/fltk.ads index 12ed6b1..6c66352 100644 --- a/src/fltk.ads +++ b/src/fltk.ads @@ -46,6 +46,7 @@ package FLTK is Left_Key : constant Shortcut_Key; Right_Key : constant Shortcut_Key; Up_Key : constant Shortcut_Key; + Escape_Key : constant Shortcut_Key; type Modifier_Key is private; @@ -209,7 +210,7 @@ private Align_Right : constant Alignment := 8; - type Modifier_Key is new Interfaces.Unsigned_8; + type Modifier_Key is new Interfaces.Unsigned_16; type Shortcut_Key is @@ -253,6 +254,7 @@ private Left_Key : constant Shortcut_Key := (Modifier => Mod_None, Keypress => 16#ff51#); Right_Key : constant Shortcut_Key := (Modifier => Mod_None, Keypress => 16#ff53#); Up_Key : constant Shortcut_Key := (Modifier => Mod_None, Keypress => 16#ff52#); + Escape_Key : constant Shortcut_Key := (Modifier => Mod_None, Keypress => 16#ff1b#); end FLTK; -- cgit