Skip to content
Open
Show file tree
Hide file tree
Changes from 10 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions check_layout.output
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ cyrl_yawerty: Layout includes some ASCII punctuation but not all, missing: #, $,
cyrl_yxukeng_os: Layout includes some ASCII punctuation but not all, missing: ", #, $, &, ', @, [, ], ~
deva_alt: Layout includes some ASCII punctuation but not all, missing: #, $, %, &, ', (, ), *, +, ., /, :, <, =, >, [, \, ], ^, _, `, {, |, }, ~
deva_inscript: Layout includes some ASCII punctuation but not all, missing: ", $, ', ^, _, `, |
hang_dubeolsik_custom: Layout contains editing keys, unexpected: copy, cut, paste, pasteAsPlainText, redo, selectAll, shareText, undo
hang_dubeolsik_kr: Layout contains editing keys, unexpected: copy, cut, paste, pasteAsPlainText, redo, selectAll, shareText, undo
hebr_1_il: Layout includes some ASCII punctuation but not all, missing: (, ), <, >, [, ], {, }
hebr_2_il: Layout includes some ASCII punctuation but not all, missing: (, ), <, >, [, ], {, }
kann_kannada: Layout includes some ASCII punctuation but not all, missing: #, $, %, (, ), *, +, /, <, =, >, [, \, ], ^, `, {, |, }, ~
Expand All @@ -27,6 +29,7 @@ latin_kbdtuf_tr: Missing programming keys, missing: loc esc, loc tab
latn_colemak: Some keys contain whitespaces, unexpected: ́
latn_dvorak: Missing important key, missing: loc capslock
latn_neo2: Layout redefines the bottom row but some important keys are missing, missing: loc switch_clipboard
latn_qwerty_custom: Layout contains editing keys, unexpected: copy, cut, paste, pasteAsPlainText, redo, selectAll, shareText, undo
latn_qwertz_cz_multifunctional: Layout includes some ASCII punctuation but not all, missing: `
latn_qwertz_sk: Layout includes some ASCII punctuation but not all, missing: `
latn_qzerty_it: Layout includes some ASCII punctuation but not all, missing: #, $, \, `, ~
Expand Down
6 changes: 6 additions & 0 deletions res/values/layouts.xml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
<item>georgian_qwerty</item>
<item>grek_qwerty</item>
<item>guj_phonetic_in</item>
<item>hang_dubeolsik_custom</item>
<item>hang_dubeolsik_kr</item>
<item>hebr_1_il</item>
<item>hebr_2_il</item>
Expand All @@ -52,6 +53,7 @@
<item>latn_qwerty_az</item>
<item>latn_qwerty_bqn</item>
<item>latn_qwerty_br</item>
<item>latn_qwerty_custom</item>
<item>latn_qwerty_cy</item>
<item>latn_qwerty_cz</item>
<item>latn_qwerty_da</item>
Expand Down Expand Up @@ -133,6 +135,7 @@
<item>QWERTY (Greek)</item>
<item>ગુજરાતી ફોનેટિક - Gujarati Phonetic</item>
<item>두벌식 (Korean)</item>
<item>두벌식 (Korean)</item>
<item>Hebrew 1</item>
<item>Hebrew 2</item>
<item>ಕನ್ನಡ - Kannada</item>
Expand All @@ -146,6 +149,7 @@
<item>QWERTY (Azərbaycanca)</item>
<item>QWERTY (BQN)</item>
<item>QWERTY (Brasileiro)</item>
<item>QWERTY Custom</item>
<item>QWERTY (Welsh)</item>
<item>QWERTY (Czech)</item>
<item>QWERTY (Danish)</item>
Expand Down Expand Up @@ -226,6 +230,7 @@
<item>@xml/georgian_qwerty</item>
<item>@xml/grek_qwerty</item>
<item>@xml/guj_phonetic_in</item>
<item>@xml/hang_dubeolsik_custom</item>
<item>@xml/hang_dubeolsik_kr</item>
<item>@xml/hebr_1_il</item>
<item>@xml/hebr_2_il</item>
Expand All @@ -240,6 +245,7 @@
<item>@xml/latn_qwerty_az</item>
<item>@xml/latn_qwerty_bqn</item>
<item>@xml/latn_qwerty_br</item>
<item>@xml/latn_qwerty_custom</item>
<item>@xml/latn_qwerty_cy</item>
<item>@xml/latn_qwerty_cz</item>
<item>@xml/latn_qwerty_da</item>
Expand Down
2 changes: 1 addition & 1 deletion res/values/styles.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<!-- Candidates view -->
<style name="candidates_view">
<item name="android:layout_width">match_parent</item>
<item name="android:layout_height">48dp</item>
<item name="android:layout_height">wrap_content</item>
<item name="android:orientation">horizontal</item>
<item name="android:gravity">center</item>
</style>
Expand Down
12 changes: 12 additions & 0 deletions srcs/juloo.keyboard2/Autocapitalisation.java
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ public void started(Config config, InputConnection ic)

public void typed(CharSequence c)
{
if (!_enabled)
return;
for (int i = 0; i < c.length(); i++)
type_one_char(c.charAt(i));
callback(false);
Expand All @@ -75,6 +77,14 @@ public void event_sent(int code, int meta)
callback(true);
}

public void text_replaced()
{
if (!_enabled)
return;
_should_update_caps_mode = true;
callback(false);
}

public void stop()
{
_should_enable_shift = false;
Expand Down Expand Up @@ -108,6 +118,8 @@ public static interface Callback
/** Returns [true] if shift might be disabled. */
public void selection_updated(int old_cursor, int new_cursor)
{
if (!_enabled)
return;
if (new_cursor == _cursor) // Just typing
return;
if (new_cursor == 0 && _ic != null)
Expand Down
1 change: 1 addition & 0 deletions srcs/juloo.keyboard2/Config.java
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ public final class Config
public Map<KeyValue, KeyboardData.PreferredPos> extra_keys_custom;
public Cdict current_dictionary = null; // Might be 'null'.
public Cdict emoji_dictionary = null; // Might be 'null'.
public boolean current_dictionary_missing = false;
public IKeyEventHandler handler;
public boolean orientation_landscape = false;
public boolean foldable_unfolded = false;
Expand Down
7 changes: 7 additions & 0 deletions srcs/juloo.keyboard2/CurrentlyTypedWord.java
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,13 @@ public void event_sent(int code, int meta)
delayed_refresh();
}

public void text_replaced()
{
if (!_enabled)
return;
delayed_refresh();
}

void callback()
{
String w = _w.toString();
Expand Down
Loading