taaparthur / navboard Goto Github PK
View Code? Open in Web Editor NEWOn-screen keyboard and generic application launcher
On-screen keyboard and generic application launcher
The README states that the qwerty layout is the default:
Line 25 in 6eb8e12
When I run navboard without any arguments, I get the mobile_symb layout, not qwerty. The mobile_symb layout is also first in the list which doesn't seem like a coincidence:
sodco:~$ navboard -l
mobile_symb
mobile
number
qwerty
alarm
clock
colors
sliders
spawn
board_of_boards
Is this where it's happening?
Line 413 in 5b5ac7f
If I set NAVBOARD_DEFAULT=qwerty
that works but I don't think that's what you meant in the README?
I am working on a pushing an Alpine package. Can you clarify the license to use for navboard? MIT?
After the recent changes to the font search logic, a segmentation fault occurs if the font is not found:
sodco:~$ sudo mv /usr/share/fonts/liberation/LiberationMono-Regular.ttf .
sodco:~$ navboard qwerty
Segmentation fault
I was trying to test on my armv7 touchscreen device earlier and I couldn't figure out what was going on until I remembered I hadn't installed the fonts, which fixed it. Previously, a missing font resulted in a helpful warning and a graceful exit:
sodco:~$ navboard
Could not load font name /usr/share/fonts/TTF/LiberationMono-Regular.ttf
Another question / request: what would be the best way to quit navboard in a touchscreen application? To me, having a quit key seems like the easiest solution but not many (any?) OSKs that I've tried include one.
I rebuilt navboard with the below patches and you can see the resulting quit key in the bottom right of the screenshot. It works well but using XK_0 seems wrong even though it doesn't appear to send the key before exiting.
--- ./functions.h.orig
+++ ./functions.h
@@ -24,5 +24,6 @@
void setPressedFromCmd(KeyGroup*keyGroup, Key*key);
void activateBoard(KeyGroup*keyGroup, Key*key);
+void exitNavboard(KeyGroup*keyGroup, Key*key);
#endif
--- ./functions.c.orig
+++ ./functions.c
@@ -45,6 +45,10 @@
activateBoardByName(key->arg.s ? key->arg.s: key->label);
}
+void exitNavboard(KeyGroup*keyGroup, Key*key) {
+ exit(0);
+}
+
void setKeyEnv(const Key* key) {
char buffer[8];
sprintf(buffer, "%d", key->value);
--- ./boards/qwerty.c.orig
+++ ./boards/qwerty.c
@@ -1,4 +1,5 @@
#include "../navboard.h"
+#include "../functions.h"
Key keys_qwerty[] = {
{XK_grave},
{XK_1},
@@ -63,6 +64,7 @@
{XK_space, .weight = 5},
{XK_Alt_R, .weight = 1},
{XK_Control_R, .weight = 1},
+ {XK_0, .label="Quit", .onPress=exitNavboard},
};
REGISTER(qwerty, keys_qwerty);
Hello, I successfully built both dtext-xcb and navboard on Alpine Linux. I've been looking for a simple OSK for a touchscreen car application and navboard seems great so far in my limited testing. I had a build error that I fixed with the below patch, though I'm not sure whether that's the best fix or not.
A question: what is meant by the "generic application launcher" part of the project description? Thanks!
--- ./xutil.c.orig
+++ ./xutil.c
@@ -191,7 +191,7 @@
}
}
}
- printf("Could not find %ld\n",targetSym);
+ printf("Could not find %ld\n",(long)targetSym);
assert(0);
return 0;
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.