summaryrefslogtreecommitdiff
path: root/cocoa/TreeView.m
diff options
context:
space:
mode:
authorWitold Filipczyk <gglater62@gmail.com>2015-03-27 09:36:19 +0000
committerVincent Sanders <vince@kyllikki.org>2015-03-27 09:36:19 +0000
commitbefa5e6ed356e019fa82b7ebf9be90913aad3edb (patch)
tree5157bdd1ad1c4f54eda26894af6843afc7050322 /cocoa/TreeView.m
parent9d6ab0475f6cd259bc6135696900bad9295f5bcb (diff)
downloadnetsurf-befa5e6ed356e019fa82b7ebf9be90913aad3edb.tar.gz
netsurf-befa5e6ed356e019fa82b7ebf9be90913aad3edb.tar.bz2
To avoid namespace conflicts with ncurses add NetSurf key prefix.
Adds a NetSurf key code prefix of NS_ to all key codes.
Diffstat (limited to 'cocoa/TreeView.m')
-rw-r--r--cocoa/TreeView.m40
1 files changed, 20 insertions, 20 deletions
diff --git a/cocoa/TreeView.m b/cocoa/TreeView.m
index ec6f1d526..0c7f3e0b3 100644
--- a/cocoa/TreeView.m
+++ b/cocoa/TreeView.m
@@ -121,102 +121,102 @@
- (void) moveLeft: (id)sender;
{
- [tree keyPress: KEY_LEFT];
+ [tree keyPress: NS_KEY_LEFT];
}
- (void) moveRight: (id)sender;
{
- [tree keyPress: KEY_RIGHT];
+ [tree keyPress: NS_KEY_RIGHT];
}
- (void) moveUp: (id)sender;
{
- [tree keyPress: KEY_UP];
+ [tree keyPress: NS_KEY_UP];
}
- (void) moveDown: (id)sender;
{
- [tree keyPress: KEY_DOWN];
+ [tree keyPress: NS_KEY_DOWN];
}
- (void) deleteBackward: (id)sender;
{
- [tree keyPress: KEY_DELETE_LEFT];
+ [tree keyPress: NS_KEY_DELETE_LEFT];
}
- (void) deleteForward: (id)sender;
{
- [tree keyPress: KEY_DELETE_RIGHT];
+ [tree keyPress: NS_KEY_DELETE_RIGHT];
}
- (void) cancelOperation: (id)sender;
{
- [tree keyPress: KEY_ESCAPE];
+ [tree keyPress: NS_KEY_ESCAPE];
}
- (void) scrollPageUp: (id)sender;
{
- [tree keyPress: KEY_PAGE_UP];
+ [tree keyPress: NS_KEY_PAGE_UP];
}
- (void) scrollPageDown: (id)sender;
{
- [tree keyPress: KEY_PAGE_DOWN];
+ [tree keyPress: NS_KEY_PAGE_DOWN];
}
- (void) insertTab: (id)sender;
{
- [tree keyPress: KEY_TAB];
+ [tree keyPress: NS_KEY_TAB];
}
- (void) insertBacktab: (id)sender;
{
- [tree keyPress: KEY_SHIFT_TAB];
+ [tree keyPress: NS_KEY_SHIFT_TAB];
}
- (void) moveToBeginningOfLine: (id)sender;
{
- [tree keyPress: KEY_LINE_START];
+ [tree keyPress: NS_KEY_LINE_START];
}
- (void) moveToEndOfLine: (id)sender;
{
- [tree keyPress: KEY_LINE_END];
+ [tree keyPress: NS_KEY_LINE_END];
}
- (void) moveToBeginningOfDocument: (id)sender;
{
- [tree keyPress: KEY_TEXT_START];
+ [tree keyPress: NS_KEY_TEXT_START];
}
- (void) moveToEndOfDocument: (id)sender;
{
- [tree keyPress: KEY_TEXT_END];
+ [tree keyPress: NS_KEY_TEXT_END];
}
- (void) insertNewline: (id)sender;
{
- [tree keyPress: KEY_NL];
+ [tree keyPress: NS_KEY_NL];
}
- (void) selectAll: (id)sender;
{
- [tree keyPress: KEY_SELECT_ALL];
+ [tree keyPress: NS_KEY_SELECT_ALL];
}
- (void) copy: (id) sender;
{
- [tree keyPress: KEY_COPY_SELECTION];
+ [tree keyPress: NS_KEY_COPY_SELECTION];
}
- (void) cut: (id) sender;
{
- [tree keyPress: KEY_CUT_SELECTION];
+ [tree keyPress: NS_KEY_CUT_SELECTION];
}
- (void) paste: (id) sender;
{
- [tree keyPress: KEY_PASTE];
+ [tree keyPress: NS_KEY_PASTE];
}
//MARK: -