menu
Помочь проекту / Реклама на сайте
[ Обновленные темы · Новые сообщения · Участники · Правила форума · Поиск · RSS ]
  • Страница 1 из 1
  • 1
Форум » Клавиатура jbak2 keyboard » Обсуждение клавиатуры » Shift key and some other questions
Shift key and some other questions
lequocthai275
[ Offline ]
Профиль
Дата: Вторник, 22.06.2021, 19:48 | Сообщение # 1
Рядовой
Группа: Пользователи
Сообщений: 4
Репутация: 0
Hello,
I am writing this using your keyboard app. It is an awesome keyboard indeed!!
I have created my own layout and be quite satisfied about it ☺
Sorry that I am writing this in English.

1. While using it, I have found out that jbak2 "shift-key" is not fully simulated the "shift-key" of physical keyboard.
Example:
Some apps take Ctrl+Shift+Z as "Redo". Jbak2 can't simulate that combination. I know that we can use template such as android:template="$codes[-5113+-5059+-5054]", but that's not the point.
You can test it here: https://unixpapa.com/js/testkey.html



The above image is the combination simulated by codeboard keyboard app.
It has keycode16 and shiftkey=true.



Jbak2 shift key just simulate the correct data (Z upper key), but not the modifier-key.
Please support fully simulated shift key.

2. When I am on num.xml layout and shift key is pressed, layout is changed to symbol.xml.
While it totally makes sense if layout is changed from symbol.xml to symbol2.xml when shift key is pressed, num.xml may contains some characters I want to use with shift key.


The Image has some characters as a,b,c,d,e,f (hex number) that I may want to use with shift key.
Please support an option or xml tag to disable/enable this feature when we are on num. xml
3. If sticky key has long code differs than it own code, please make it "Not stick" when long-press.
Example:
Alt key code is -308, longcode perform a copy. Please make it "Not stick" after a long-press.
Код
<Key android:keyLabel="�$f#ɢ\nAlt"
    android:keyWidth="13%p"
    android:codes="-308"
    android:longCode="-320"
    android:specKey="true"
    android:isRepeatable="false"
    android:isSticky="true" />


Thanks again for an amazing keyboard!

Edited: It seems that the images are not show at the correct position. I don't know why...
Прикрепления: 6277774.jpg (198.8 Kb) · 1838631.jpg (224.7 Kb) · 7165962.jpg (86.7 Kb)


Сообщение отредактировал lequocthai275 - Вторник, 22.06.2021, 20:20
 
wolf3d
[ Offline ]
Профиль
Дата: Вторник, 22.06.2021, 22:28 | Сообщение # 2
Полковник
Группа: Админы
Сообщений: 162
Репутация: 1
Цитата lequocthai275 ()
Sorry that I am writing this in English.

Ничего страшного - сайт мультиязычный, я всегда могу увидеть перевод.
Так даже удобнее и вам и мне. smile

Цитата lequocthai275 ()
Some apps take Ctrl+Shift+Z as "Redo"

а многие другие НЕ ИСПОЛЬЗУЮТ Этот вопрос подробно и долго тестировался, когда вводились эти функции (undo/redo), с целью выбрать лучшую комбинацию для redo.
Пользователи предпочли ctrl-y.

Цитата lequocthai275 ()
2. When I am on num.xml layout and shift key is pressed, layout is changed to symbol.xml.

Я вас понял, но нет - объясню логику в программе:
есть алфавитные раскладки и все остальные. Соответственно, это много где проверяется и от этого строится всё поведение программы.
В программе жёстко прописано, что если раскладка НЕ алфавитная, то переключаться на symbol2. И я не смогу этого изменить, потому что это повлечёт за собой множество сбоев и непонятного поведения программы.

Цитата lequocthai275 ()
3. If sticky key has long code differs than it own code, please make it "Not stick" when long-press.Example:
Alt key code is -308 ,..
У меня ничего не залипает, но я не смог просто скопировать приведённый вами код клавиши. - ошибка раскладки на этой клавише.
Поэтому переписывал его вручную. Возможно у вас какая-то ошибка с кодировкой или ваш редактор вставляет свои неотображаемые символы? Что и приводит к залипаниям.
А может это сайт чудит
 
lequocthai275
[ Offline ]
Профиль
Дата: Среда, 23.06.2021, 10:15 | Сообщение # 3
Рядовой
Группа: Пользователи
Сообщений: 4
Репутация: 0
1. Redo was just an example. For other functions, apps may have combination as Ctrl+Shift+A, Shift+B, Shift+E, Alt+Shift+... jbak2 will not be able to produce these combination.

2. Thank you. I can understand your point there. Anyway, my work around is I created a layout with prefix number.xml (not num.xml) and load it as custom language, so I can use shift to make uppercase key with number.xml. When (123) key is pressed, it directly call to number.xml (as custom language) instead of num.xml

3. When I said "not stick", I mean the green dot of sticky key.



Example above:
If Alt is short-pressed, then the dot is green --> everyone happy ☺
If Alt is long-pressed, then in my code it call copy function, the dot should not become green since it performs a complete different function.

4. One more thing, could you add this function: manually bring up the keyboard without the present of text field. Reference link: https://android.stackexchange.com/questio....eyboard

Please open mp4 or .gif file to see details of how it works for hacker's keyboard.

Прикрепления: 9012308.jpg (25.8 Kb) · Screenrecorder-.mp4 (4.62 Mb) · 1619952.gif (5.53 Mb)


Сообщение отредактировал lequocthai275 - Среда, 23.06.2021, 10:21
 
wolf3d
[ Offline ]
Профиль
Дата: Среда, 23.06.2021, 11:09 | Сообщение # 4
Полковник
Группа: Админы
Сообщений: 162
Репутация: 1
Цитата lequocthai275 ()
One more thing, could you add this function
вызов клавиатуры из шторки давным-давно сделан — настройки-прочие настройки-вызов из шторки, поставить галочку.

По остальному отвечу позже, сейчас не могу, занят.
 
wolf3d
[ Offline ]
Профиль
Дата: Четверг, 24.06.2021, 03:28 | Сообщение # 5
Полковник
Группа: Админы
Сообщений: 162
Репутация: 1
Цитата lequocthai275 ()
1. Redo was just an example. For other functions, apps may have combination as Ctrl+Shift+A, Shift+B, Shift+E, Alt+Shift+... jbak2 will not be able to produce these combination.
Да, только через специнструкцию codes[]

Цитата lequocthai275 ()
it directly call to number.xml (as custom language) instead of num.xml
то есть, вопрос в принципе решён и без всяких доделок программы smile
Цитата lequocthai275 ()
3. When I said "not stick", I mean the green dot of sticky key.
а, неправильный перевод, поэтому я вас и не понял smile
Как-то был уже разговор про индикатор по longClick, я смотрел в коде - там оказывается и это просто так не поменяешь, тоже много где используется.
Так что увы, не получится, да и потом выяснилось что наоборот, ненужно этого делать - уже не помню почему именно, но по-моему, это вызовет намного большее неудобство, чем при текущей реализации.
 
lequocthai275
[ Offline ]
Профиль
Дата: Суббота, 26.06.2021, 07:28 | Сообщение # 6
Рядовой
Группа: Пользователи
Сообщений: 4
Репутация: 0
Jbak2 is an excellent keyboard app, definitely better in flexible customizing skins & layouts than most keyboard apps. The control keys still have some issues but I am ok with it. Thanks again for an awesome app!! ☺

Сообщение отредактировал lequocthai275 - Суббота, 26.06.2021, 07:29
 
Форум » Клавиатура jbak2 keyboard » Обсуждение клавиатуры » Shift key and some other questions
  • Страница 1 из 1
  • 1
Поиск: