Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enter key submits instead of breaking the line. #822

Open
GitAlasGo opened this issue Dec 11, 2024 · 5 comments
Open

Enter key submits instead of breaking the line. #822

GitAlasGo opened this issue Dec 11, 2024 · 5 comments

Comments

@GitAlasGo
Copy link

GitAlasGo commented Dec 11, 2024

In some apps (e.g. discord app) pressing enter sends the message, instead of introducing the line break. Other keyboard (HeliBoard, hacker's keyboard etc) don't have such behaviour. It is not universal across apps (e.g. in Acode editor it does introduce line break as expected).

But other keyboards somehow are not affected, so it puts unexpected keyboard at disadvantage (i have to add new lines to custom keys to compose anything longer than one line). Ctrl and Fn modifier are not the reason (toggled them on and off in all combinations).

Maybe it is discord fault because on a computer the discord website it wants you to hold shift and then click enter to make a newline.

Maybe you can add the line break change to the enter button, but add another enter button above the enter button that enters instead of making a new line.

@Spike-from-NH
Copy link
Contributor

My keyboard, based on Default QWERTY, has "the enter key" defined by enter for the tap and action for a swipe. Traditionally, lines ended with CR,LF to command the Teletype. Unix (thus Android) saved a byte and standardized on LF (renamed New Line). So CR became available for other app use.

@ka-shifuka
Copy link

sift + enter its work on me

@GitAlasGo
Copy link
Author

GitAlasGo commented Dec 24, 2024

sift + enter its work on me

i mentioned it here

Maybe it is discord fault because on a computer the discord website it wants you to hold shift and then click enter to make a newline.

@ka-shifuka
Copy link

ka-shifuka commented Dec 24, 2024

you can use cutom key also with value "\n"
here an example im just adding "\n" in delete key

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<keyboard name="custom" script="latin">
  <row height="0.73">
    <key width="1.43" key0="esc" key4="ctrl"/>
    <key width="1.43" key0="tab"/>
    <key width="1.43" key0="/" key3="."/>
    <key width="1.43" key0="alt"/>
    <key width="1.43" key0="-" key2="\n"/>
    <key width="1.43" key0="left" key2="up" key3="down"/>
    <key width="1.43" key0="right"/>
  </row>
  <row>
    <key key0="q" key2="1" key4="esc"/>
    <key key0="w" key1="~" key2="2" key3="\@"/>
    <key key0="e" key1="!" key2="3" key3="\#" key4="loc €"/>
    <key key0="r" key1="loc ₪" key2="4" key3="$" key4="0"/>
    <key key0="t" key2="5" key3="%"/>
    <key key0="y" key2="6" key3="^"/>
    <key key0="u" key2="7" key3="&amp;"/>
    <key key0="i" key2="8" key3="*"/>
    <key key0="o" key1="loc accent_macron" key2="9" key3="(" key4=")"/>
    <key key0="p" key2="0" key3="f11_placeholder" key4="f12_placeholder"/>
  </row>
  <row>
    <key shift="0.5" key0="a" key1="tab" key2="`" key4="loc ₪"/>
    <key key0="s" key1="loc accent_ring" key3="loc ß" key4="selectAll"/>
    <key key0="d" key1="loc accent_grave" key2="loc £" key3="loc accent_aigu" key4="copy"/>
    <key key0="f" key1="loc accent_dot_above" key4="paste"/>
    <key key0="g" key1="loc accent_caron" key2="-" key3="_"/>
    <key key0="h" key2="=" key3="+"/>
    <key key0="j" key1="loc accent_trema" key2="loc accent_circonflexe" key3="{" key4="}"/>
    <key key0="k" key1="loc accent_double_aigu" key3="[" key4="]"/>
    <key key0="l" key2="|" key3="\\"/>
  </row>
  <row>
    <key width="1.5" key0="shift" key2="loc capslock"/>
    <key key0="z"/>
    <key key0="x"/>
    <key key0="c" key1="loc accent_cedille" key2="&lt;" key3="."/>
    <key key0="v" key2=">" key3=","/>
    <key key0="b" key2="\?" key3="/"/>
    <key key0="n" key1="loc accent_tilde" key2=":" key3=";"/>
    <key key0="m" key2="&quot;" key3="'"/>
    <key width="1.5" key0="backspace" key2="delete" key1="\n"/>
  </row>
</keyboard>

is little anoying because is hard to edit bottom in keyboard editor there no clue for clipboard pane and arrow key in space key or i just dont know the value is

@GitAlasGo
Copy link
Author

you can use cutom key also with value "\n" here an example im just adding "\n" in delete key

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<keyboard name="custom" script="latin">
  <row height="0.73">
    <key width="1.43" key0="esc" key4="ctrl"/>
    <key width="1.43" key0="tab"/>
    <key width="1.43" key0="/" key3="."/>
    <key width="1.43" key0="alt"/>
    <key width="1.43" key0="-" key2="\n"/>
    <key width="1.43" key0="left" key2="up" key3="down"/>
    <key width="1.43" key0="right"/>
  </row>
  <row>
    <key key0="q" key2="1" key4="esc"/>
    <key key0="w" key1="~" key2="2" key3="\@"/>
    <key key0="e" key1="!" key2="3" key3="\#" key4="loc €"/>
    <key key0="r" key1="loc ₪" key2="4" key3="$" key4="0"/>
    <key key0="t" key2="5" key3="%"/>
    <key key0="y" key2="6" key3="^"/>
    <key key0="u" key2="7" key3="&amp;"/>
    <key key0="i" key2="8" key3="*"/>
    <key key0="o" key1="loc accent_macron" key2="9" key3="(" key4=")"/>
    <key key0="p" key2="0" key3="f11_placeholder" key4="f12_placeholder"/>
  </row>
  <row>
    <key shift="0.5" key0="a" key1="tab" key2="`" key4="loc ₪"/>
    <key key0="s" key1="loc accent_ring" key3="loc ß" key4="selectAll"/>
    <key key0="d" key1="loc accent_grave" key2="loc £" key3="loc accent_aigu" key4="copy"/>
    <key key0="f" key1="loc accent_dot_above" key4="paste"/>
    <key key0="g" key1="loc accent_caron" key2="-" key3="_"/>
    <key key0="h" key2="=" key3="+"/>
    <key key0="j" key1="loc accent_trema" key2="loc accent_circonflexe" key3="{" key4="}"/>
    <key key0="k" key1="loc accent_double_aigu" key3="[" key4="]"/>
    <key key0="l" key2="|" key3="\\"/>
  </row>
  <row>
    <key width="1.5" key0="shift" key2="loc capslock"/>
    <key key0="z"/>
    <key key0="x"/>
    <key key0="c" key1="loc accent_cedille" key2="&lt;" key3="."/>
    <key key0="v" key2=">" key3=","/>
    <key key0="b" key2="\?" key3="/"/>
    <key key0="n" key1="loc accent_tilde" key2=":" key3=";"/>
    <key key0="m" key2="&quot;" key3="'"/>
    <key width="1.5" key0="backspace" key2="delete" key1="\n"/>
  </row>
</keyboard>

is little anoying because is hard to edit bottom in keyboard editor there no clue for clipboard pane and arrow key in space key or i just dont know the value is

This is not addressing the root cause, it just tries to cope.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants