From 55a6bd7fbb8765aff0c0ce0053de903e4d31baea Mon Sep 17 00:00:00 2001 From: Taehyub Kim Date: Wed, 18 May 2016 21:55:35 +0900 Subject: elc_popup: add escape key binding Summary: There are no methods to close the popup with key down. So I added the escape key binding to close the popup with escape key. Test Plan: 1. patch this code 2. delete /home/{user}/.elementary to refresh the config value 3. launch elementary_test -to "popup" 4. click one example of the list and press escape key 5. see closing the popup Reviewers: cedric, raster, jpeg, Jaehyun_Cho, Hermet Reviewed By: Hermet Differential Revision: https://phab.enlightenment.org/D3876 Conflicts: src/lib/elementary/elm_priv.h --- config/default/base.src.in | 8 +++++++- config/mobile/base.src.in | 8 +++++++- config/standard/base.src.in | 8 +++++++- 3 files changed, 21 insertions(+), 3 deletions(-) (limited to 'config') diff --git a/config/default/base.src.in b/config/default/base.src.in index bd2ec066c6..eed391ca41 100644 --- a/config/default/base.src.in +++ b/config/default/base.src.in @@ -1,5 +1,5 @@ group "Elm_Config" struct { - value "config_version" int: 131079; + value "config_version" int: 131083; value "engine" string: ""; value "vsync" uchar: 0; value "thumbscroll_enable" uchar: 1; @@ -597,6 +597,12 @@ group "Elm_Config" struct { value "action" string: "move"; value "params" string: "down"; } + group "Elm_Config_Binding_Key" struct { + value "context" int: 0; + value "key" string: "Escape"; + value "action" string: "esc"; + value "params" string: ""; + } } } group "Elm_Config_Bindings_Widget" struct { diff --git a/config/mobile/base.src.in b/config/mobile/base.src.in index d753de513e..2622b89371 100644 --- a/config/mobile/base.src.in +++ b/config/mobile/base.src.in @@ -1,5 +1,5 @@ group "Elm_Config" struct { - value "config_version" int: 131079; + value "config_version" int: 131083; value "engine" string: ""; value "vsync" uchar: 0; value "thumbscroll_enable" uchar: 1; @@ -601,6 +601,12 @@ group "Elm_Config" struct { value "action" string: "move"; value "params" string: "down"; } + group "Elm_Config_Binding_Key" struct { + value "context" int: 0; + value "key" string: "Escape"; + value "action" string: "escape"; + value "params" string: ""; + } } } group "Elm_Config_Bindings_Widget" struct { diff --git a/config/standard/base.src.in b/config/standard/base.src.in index cf0d7736d4..e8ca1d0450 100644 --- a/config/standard/base.src.in +++ b/config/standard/base.src.in @@ -1,5 +1,5 @@ group "Elm_Config" struct { - value "config_version" int: 131079; + value "config_version" int: 131083; value "engine" string: ""; value "vsync" uchar: 0; value "thumbscroll_enable" uchar: 0; @@ -598,6 +598,12 @@ group "Elm_Config" struct { value "action" string: "move"; value "params" string: "down"; } + group "Elm_Config_Binding_Key" struct { + value "context" int: 0; + value "key" string: "Escape"; + value "action" string: "escape"; + value "params" string: "esc"; + } } } group "Elm_Config_Bindings_Widget" struct { -- cgit v1.2.1