-
-
Notifications
You must be signed in to change notification settings - Fork 113
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
feat(web): add Keyboard
and KMXKeyboard
classes 🎼
#12825
Conversation
User Test ResultsTest specification and instructions User tests are not required Test Artifacts
|
Keyboard
and KMXKeyboard
classesKeyboard
and KMXKeyboard
classes 🎼
27e7418
to
c359fe7
Compare
f8f844f
to
ab81bde
Compare
c359fe7
to
b4d78ce
Compare
ab81bde
to
4759764
Compare
4759764
to
bb4d5d9
Compare
b4d78ce
to
f8ed96a
Compare
bb4d5d9
to
7767f3d
Compare
The `Keyboard` class can be either a JS or KMX keyboard. Also make use of the `Keyboard` class where it makes sense and add TODOs in the places that still need to be implemented for KMX keyboard support.
7767f3d
to
08b261c
Compare
// extract keyboard name from URI | ||
const id = uri.split('#')[0].split('?')[0].split('/').pop().split('.')[0]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is the keyboard name guaranteed to be in the URI?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point. I'll address this in a follow-up PR.
constructor(id: string, keyboard: km_core_keyboard) { | ||
this.id = id; | ||
this.keyboard = keyboard; | ||
} | ||
|
||
id: string; | ||
keyboard: km_core_keyboard; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
constructor(id: string, keyboard: km_core_keyboard) { | |
this.id = id; | |
this.keyboard = keyboard; | |
} | |
id: string; | |
keyboard: km_core_keyboard; | |
constructor(public id: string, public keyboard: km_core_keyboard) { | |
} |
Also, consider making these private properties with read-only getters.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
Addresses code review comment.
The
Keyboard
class can be either a JS or KMX keyboard. Also make use of theKeyboard
class where it makes sense and add TODOs in the places that still need to be implemented for KMX keyboard support.Part-of: #11293
@keymanapp-test-bot skip