Re: [E-devel] [EGIT] [tools/eflete] master 01/01: Shortcuts: Use Alt+F4 combination for close Eflete in Tizen mode.
On Thu, 15 Dec 2016 11:27:10 +0200 Mykyta Biliavskyisaid: > Hi, > > this is requirements. And I haven't power to change it right now. > In "classic" Eflete version - any shortcuts will not changed. that's not true. just don't follow requirements then. :) you do have the power. ultimate power rests with the person doing the work. :) this is why it is important for those giving direction to get the buy-in of those doing the work... :) > On Thu, 2016-12-15 at 10:10 +0100, Vincent Torri wrote: > > hey > > > > why not also allowing Ctrl-q for Tizen ? > > > > Vincent > > > > --- > > --- > > Check out the vibrant tech community on one of the world's most > > engaging tech sites, SlashDot.org! http://sdm.link/slashdot > > ___ > > enlightenment-devel mailing list > > enlightenment-devel@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/enlightenment-devel > > > > > > > -- > Check out the vibrant tech community on one of the world's most > engaging tech sites, SlashDot.org! http://sdm.link/slashdot > ___ > enlightenment-devel mailing list > enlightenment-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/enlightenment-devel -- - Codito, ergo sum - "I code, therefore I am" -- The Rasterman (Carsten Haitzler)ras...@rasterman.com -- Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] [EGIT] [tools/eflete] master 01/01: Shortcuts: Use Alt+F4 combination for close Eflete in Tizen mode.
Hi, this is requirements. And I haven't power to change it right now. In "classic" Eflete version - any shortcuts will not changed. On Thu, 2016-12-15 at 10:10 +0100, Vincent Torri wrote: > hey > > why not also allowing Ctrl-q for Tizen ? > > Vincent > > --- > --- > Check out the vibrant tech community on one of the world's most > engaging tech sites, SlashDot.org! http://sdm.link/slashdot > ___ > enlightenment-devel mailing list > enlightenment-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/enlightenment-devel > > -- Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] [EGIT] [tools/eflete] master 01/01: Shortcuts: Use Alt+F4 combination for close Eflete in Tizen mode.
hey why not also allowing Ctrl-q for Tizen ? Vincent -- Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
[EGIT] [tools/eflete] master 01/01: Shortcuts: Use Alt+F4 combination for close Eflete in Tizen mode.
rimmed pushed a commit to branch master. http://git.enlightenment.org/tools/eflete.git/commit/?id=4ea9ddc5a050a55e407990785029cdff2ac54c23 commit 4ea9ddc5a050a55e407990785029cdff2ac54c23 Author: Mykyta BiliavskyiDate: Thu Dec 15 08:38:55 2016 +0200 Shortcuts: Use Alt+F4 combination for close Eflete in Tizen mode. --- src/bin/ui/shortcuts/shortcuts.c | 14 +- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/bin/ui/shortcuts/shortcuts.c b/src/bin/ui/shortcuts/shortcuts.c index 6e2ff00..d40a7f9 100644 --- a/src/bin/ui/shortcuts/shortcuts.c +++ b/src/bin/ui/shortcuts/shortcuts.c @@ -437,9 +437,13 @@ static void _default_shortcuts_add() { assert(ap.shortcuts != NULL); - +#if HAVE_TIZEN + _add_shortcut(SHORTCUT_TYPE_QUIT, SHORTCUT_TYPE_NONE, + MOD_ALT, 70, "F4" /*q*/); +#else _add_shortcut(SHORTCUT_TYPE_QUIT, SHORTCUT_TYPE_NONE, MOD_CTRL, 24, "q" /*q*/); +#endif _add_shortcut(SHORTCUT_TYPE_UNDO, SHORTCUT_TYPE_NONE, MOD_CTRL, 52, "z" /*z*/); @@ -716,11 +720,19 @@ shortcuts_shortcut_reset() ap.shortcuts->shortcuts = eina_list_remove_list(ap.shortcuts->shortcuts, l); switch (shortcut->type_press) { +#if HAVE_TIZEN + case SHORTCUT_TYPE_QUIT: + shortcut->modifiers = MOD_ALT; + shortcut->keycode = 70; + shortcut->keyname = "F4"; + break; +#else case SHORTCUT_TYPE_QUIT: shortcut->modifiers = MOD_CTRL; shortcut->keycode = 24; shortcut->keyname = "q"; break; +#endif case SHORTCUT_TYPE_UNDO: shortcut->modifiers = MOD_CTRL; shortcut->keycode = 52; --