mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Add single-line text input with no visible cursor.
This commit is contained in:
parent
84bc17e7ad
commit
80764f65e3
8 changed files with 776 additions and 63 deletions
|
@ -58,6 +58,7 @@ pub enum KeyState {
|
|||
}
|
||||
|
||||
//N.B. Straight up copied from glfw-rs
|
||||
#[deriving(Show)]
|
||||
pub enum Key {
|
||||
KeySpace,
|
||||
KeyApostrophe,
|
||||
|
@ -184,10 +185,10 @@ pub enum Key {
|
|||
|
||||
bitflags! {
|
||||
flags KeyModifiers: u8 {
|
||||
const Shift = 0x01,
|
||||
const Control = 0x02,
|
||||
const Alt = 0x04,
|
||||
const Super = 0x08,
|
||||
const SHIFT = 0x01,
|
||||
const CONTROL = 0x02,
|
||||
const ALT = 0x04,
|
||||
const SUPER = 0x08,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue