From 067ab908476d21faac657dcfe9a8e6a37054c62d Mon Sep 17 00:00:00 2001 From: Raphael Date: Thu, 24 Feb 2022 15:55:48 -0500 Subject: [PATCH] Update symbols from unicode to font-Icon --- assets/fonts/keys.ttf | Bin 5972 -> 7076 bytes srcs/juloo.keyboard2/KeyValue.java | 13 ++++++------- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/assets/fonts/keys.ttf b/assets/fonts/keys.ttf index 9e7356100c7f69804d5bc29d9f09b26f80ee5548..aa5cf8c3e1850aacfd7173f31941e0a8d0f6111b 100644 GIT binary patch delta 1688 zcmZ`(U2Gdg5T4ny?`+5Mo&WBf#QCw^*e0k+>o|6rg!C%XP=z|JN+@oTT3e}Ww=|B` zq$NO+BLP(_qN>7u0r3za9wL-JKvChTJtW>Js6rq?5fC1b0^$LQBEds!W*rv=1h+Rk z`+YkzJGVQxU-Z76ECT|7LY)awj!)?>IzYgm8v%_`nl=vC-(h z&j66mAD*7cmhOhyZUL}C;wGlg&vy||k6fb8cCwV8xpejF5dh(3fTmJDJI8s2;-yJj z@@JkapM3A*PktnaRRC$dkjtKM|N4EAg4xL+Q6NJ4MYv6PjPSO?%>2ThYjBP58sYSr z+3BonRk=$37YO&xWEV>CDf~q91;Sm$>`bm}^{ZC_H1c8VrP;ap(cdo92efkguS;iR zxze}K2(JJ*?i2AseK%+`ih~zlKQ52_4xPd}@$mVc+A!DOJ@V#jl^vLr)VifwDPlWr zuPotibXD%)U|FD#HTBV2AAyVUHSdu$v}v?~iKE@txsW}hxI#nx^{@bA#PEahlVOy! zNE*52x~o0oviWjafXZ@EmFbOu`6xb0Z|dhRg>8gwaJ!~k_Bz%g2kbAZ`xW?zE-P6a9)t?DEqYoW?98U1rxercF436St~A)9I6shkRBxeUN;tY=B(YN-S2ri4)bE)wl2%TiH0n zuF?3Wfhs@SCeW!ymZ?faTFU`0P|MH?9T0>t^gu72VkoJFoFVM@hLR02Zy85u+)d&P zdHdbYfRh=^hOw+~EM_wN)%6wIq5&1KsqYTa(&4evqI5I%T%8Y+yZp)%d>z%akQ9Ru_$Wl9cNr&u&YS zv~4C}wH4thR)tRJgWYhH_NiWynkuQhv?VcAujxp5AkHf{nb3lgsEL}|A4?_%5|MC# zu-DVT@krRcV<*i}D<_f>{*&+@gNmFtTs@LX4G)Hbh{3?na4K~qothjP3IquaO{V@( z6$MdIR85vqk*n_zCZsB|tX$p}40g2pe9kf7ll}3BdVG6bK7UK7J-{{s!Ci?%lj(ni zN~b52lS8|LfiGoQqj1#oFb~GWR0CG4OKH*Cd!lh{X^r-@YyM`p#R@lGa@zz{D_7Jm z7g8SRL>IczW6l-lb7w0bs6AH8TyB2;R53qS`9bYFYbwmntaW{2 z_SvFzu6Szi;LaE?Q92E}kz~>U{O(q%IvHodOF~y&z4-Yo7yi`sH+OEo$idbN_AhD$ BPt^bb delta 540 zcmZ2tenqdIfsuiMK>$dwFfh2eh4}XLH+3^Gh+6T>k3k5?e*ok=`C0P4>H@|AKED+(BnGrR=KX8`#Md5O8H3Ttiv zJtW)$bmWVI{Nj@1_b+BKFo=QFFDWQ8N-emX&D_es!1n|wPz??ZU|uhplk*s58HFeJFxoTnPCmnEF`0u&#to>B8H#1V z$`}}YfFhuPmH`H{0g&bZLM9;1@PhRP@BjZ`7Q+j65KDqtf(fK{a~YE~FK-TG2jc?9 z9gOD~pE3TLyo&$-=9hv$m^M!p=U`?Om^@EPfs-RAwJbG9x3pmL1u3n`%+mTUK;4W$ mllZ|lg2E9Pfk4|Bfo=ea0V5h>H;@LoiQ$fVb`yw3_9Otbh;wNG diff --git a/srcs/juloo.keyboard2/KeyValue.java b/srcs/juloo.keyboard2/KeyValue.java index 66029a7..1ef97f2 100644 --- a/srcs/juloo.keyboard2/KeyValue.java +++ b/srcs/juloo.keyboard2/KeyValue.java @@ -226,25 +226,24 @@ class KeyValue addCharKey('€', EVENT_NONE, FLAG_LANG_EURO); addCharKey('£', EVENT_NONE, FLAG_LANG_POUND); - addSpecialKey("config", "⛭", EVENT_CONFIG); + addSpecialKey("config", "\uE806", EVENT_CONFIG, FLAG_KEY_FONT); addSpecialKey("switch_text", "ABC", EVENT_SWITCH_TEXT); addSpecialKey("switch_numeric", "123+", EVENT_SWITCH_NUMERIC); - addSpecialKey("switch_emoji", "☻", EVENT_SWITCH_EMOJI); + addSpecialKey("switch_emoji", "\uE812" , EVENT_SWITCH_EMOJI, FLAG_KEY_FONT); addSpecialKey("switch_back_emoji", "ABC", EVENT_SWITCH_BACK_EMOJI); addSpecialKey("change_method", "\ue807", EVENT_CHANGE_METHOD, FLAG_KEY_FONT); addSpecialKey("action", "Action", EVENT_ACTION); // Will always be replaced addEventKey("esc", "Esc", KeyEvent.KEYCODE_ESCAPE); - // Enter should be '\u23CE' but using what is in the font file at the moment addEventKey("enter", "\ue800", KeyEvent.KEYCODE_ENTER, FLAG_KEY_FONT); addEventKey("up", "\uE80B", KeyEvent.KEYCODE_DPAD_UP, FLAG_KEY_FONT | FLAG_PRECISE_REPEAT); addEventKey("right", "\uE80C", KeyEvent.KEYCODE_DPAD_RIGHT, FLAG_KEY_FONT | FLAG_PRECISE_REPEAT); addEventKey("down", "\uE809", KeyEvent.KEYCODE_DPAD_DOWN, FLAG_KEY_FONT | FLAG_PRECISE_REPEAT); addEventKey("left", "\uE80A", KeyEvent.KEYCODE_DPAD_LEFT, FLAG_KEY_FONT | FLAG_PRECISE_REPEAT); - addEventKey("page_up", "⇞", KeyEvent.KEYCODE_PAGE_UP); - addEventKey("page_down", "⇟", KeyEvent.KEYCODE_PAGE_DOWN); - addEventKey("home", "↖", KeyEvent.KEYCODE_MOVE_HOME); - addEventKey("end", "↗", KeyEvent.KEYCODE_MOVE_END); + addEventKey("page_up", "\uE810", KeyEvent.KEYCODE_PAGE_UP, FLAG_KEY_FONT); + addEventKey("page_down", "\uE811", KeyEvent.KEYCODE_PAGE_DOWN, FLAG_KEY_FONT); + addEventKey("home", "\uE80E", KeyEvent.KEYCODE_MOVE_HOME, FLAG_KEY_FONT); + addEventKey("end", "\uE80F", KeyEvent.KEYCODE_MOVE_END, FLAG_KEY_FONT); addEventKey("backspace", "⌫", KeyEvent.KEYCODE_DEL); addEventKey("delete", "⌦", KeyEvent.KEYCODE_FORWARD_DEL); addEventKey("insert", "Ins", KeyEvent.KEYCODE_INSERT);