MarZab / FxKeyboard

A virtual keyboard for Firefox
https://addons.mozilla.org/firefox/addon/fxkeyboard/
GNU General Public License v3.0
11 stars 23 forks source link

Open Keyboard only if condition is true #7

Closed cartmen closed 12 years ago

cartmen commented 12 years ago

Is it possible to set FxKeyboard that it opens only if a specific condition is true? It would be great if it opens in a text field but not in a text field where only numbers should be inserted.

For example:

input name="var2850" id="var2850" value="" tabindex="60" class="ts_textfield_single_line ui-input-text ui-body-c ui-corner-all ui-shadow-inset" type="text" -> open KeyBoard

input name="var2851" id="var2851" value="" tabindex="61" class="ts_textfield_single_line ui-input-text ui-body-c ui-corner-all ui-shadow-inset" type="text" keyboard="no" -> dont open KeyBoard

MarZab commented 12 years ago

It's quite possible.

through, it would be better to use type="number" and display a numeric keyboard only

cartmen commented 12 years ago

Is it possible with the current version or do you have to add these function?

MarZab commented 12 years ago

I will patch up the plugin to use data-fxkeyboard="false" for input fields.

MarZab commented 12 years ago

Please test and report any issues.

cartmen commented 12 years ago

Works great. Thanks for your fantastic work.