September 2017 Update
This commit is contained in:
parent
bba7bfd280
commit
ba8067c3b7
14570 changed files with 153136 additions and 63871 deletions
23
Task/Keyboard-macros/Ring/keyboard-macros.ring
Normal file
23
Task/Keyboard-macros/Ring/keyboard-macros.ring
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
load "guilib.ring"
|
||||
|
||||
app = new qApp {
|
||||
win = new qWidget() {
|
||||
setWindowTitle("Don't accept Spaces")
|
||||
move(100,100) resize(400,400)
|
||||
new qLineedit(win) {
|
||||
myfilter = new qAllEvents(win) {
|
||||
setkeypressevent("keypress()")
|
||||
}
|
||||
installeventfilter(myfilter)
|
||||
}
|
||||
show()
|
||||
}
|
||||
exec()
|
||||
}
|
||||
|
||||
func keypress
|
||||
nKey = myfilter.getkeycode()
|
||||
switch nKey
|
||||
on 16777264 see "You pressed F1 " + nl
|
||||
on 16777265 see "You pressed F2 " + nl
|
||||
off
|
||||
Loading…
Add table
Add a link
Reference in a new issue